Skip to content
A JavaScript library for removing Urchin Traffic Monitor (UTM) parameters from URL.
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build Build Sep 1, 2015
Gruntfile.js Configure ESLint Sep 1, 2015
README.md Build minified version with source map Dec 8, 2014
bower.json Version 0.2.4 Jan 24, 2015
package.json Remove files field Apr 12, 2016
unutm.js Configure ESLint Sep 1, 2015
unutm_ga.js Configure ESLint Sep 1, 2015

README.md

UnUTM

A JavaScript library removes Urchin Traffic Monitor (UTM) parameters from URL.

INSTALL

Install with Bower

$ bower install unutm

USAGE

Invoke this library by adding following HTML code to HTML:

<script src="/bower_components/unutm/unutm.min.js"></script>

Google Analytics (Experimental)

Load unutm_ga.js instead of unutm.js before Google Analytics, and invoke with hitCallback function:

<script src="/bower_components/unutm/unutm_ga.js"></script>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-XXXXXXXX-X', 'auto');
  ga('send', 'pageview', {
    'hitCallback': unutm
  });
</script>

LICENSE

MIT: http://hail2u.mit-license.org/2013

You can’t perform that action at this time.