Micro library for parsing a referrer by type
yarn add @cux/referrer
import { getReferrer } from '@cux/referrer';
getReferrer('https://google.com/');
You should receive the following object:
{
type: ReferrerType;
name: ReferrerName | string;
}
- Paid Traffic (Google, Facebook, Bing. Yahoo campaigns)
- Search (Google, Bing, Yahoo, Baidu, Yandex)
- Social (Facebook, Twitter, Instagram, Youtube, Linkedin)
- Organic (direct link)
- Other