Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

strip-utm

Removes utm tracking codes from a URL query string.

Installation

$ npm install strip-utm --save

Usage

var stripUtm = require('./strip-utm');

var theUrl = 'http://example.com/?utm_campaign=RSS-Feedburner-All-Partial&utm_cid=RSS-Feedburner-All-Partial&utm_medium=feed&utm_source=feedly&utm_reader=feedly&z=last&m=middle&a=first&t=upper-middle';

console.log(stripUtm(theUrl));

Output:

http://example.com/?a=first&m=middle&t=upper-middle&z=last

About

Removes utm tracking codes from a URL query string.

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.