utm-extractor

Parse queryString and extract each utm parameters

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
utm-extractor
1.0.87 months ago4 years agoMinified + gzip package size for utm-extractor in KB

Readme

Install utm-extractor
```` yarn add utm-extractor or npm install utm-extractor --save ````
Usage
```` import {Utm} from 'utm-extractor' const utm = new Utm('?utmsource=Google&utmmedium=cpc&utmcampaign=springsale&utmterm=running+shoes&utmcontent=logolink') const values = utm.get()
console.log(values)
{
utm_source : "Google",
utm_medium: "cpc",     
utm_campaign: "spring_sale",
utm_term: 'running+shoes',
utm_content: 'logolink'
}
````