Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.08 KB

README.md

File metadata and controls

51 lines (40 loc) · 1.08 KB

Cux.io


Micro library for parsing a referrer by type

Installation

yarn add @cux/referrer

Usage

import { getReferrer } from '@cux/referrer';

getReferrer('https://google.com/');

You should receive the following object:

{
  type: ReferrerType;
  name: ReferrerName | string;
}

Types of referrers

  • Paid Traffic (Google, Facebook, Bing. Yahoo campaigns)
  • Search (Google, Bing, Yahoo, Baidu, Yandex)
  • Social (Facebook, Twitter, Instagram, Youtube, Linkedin)
  • Organic (direct link)
  • Other