Coder Social home page Coder Social logo

aaronclinger / gahelper.js Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 30 KB

A utility which makes tracking with Google Analytics more reliable and less error-prone.

License: MIT License

JavaScript 100.00%
google-analytics pageview tracker utm-parameters

gahelper.js's People

Contributors

aaronclinger avatar lucasishuman avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

gahelper.js's Issues

Add 'beacon' Support

Updated the library to detect the browser’s support of navigator.sendBeacon and, if present, switch to use it. If present hitCallback can fire immediately and links don’t need to be delayed.

'clearUTM' Removes Hash Marks / Fragment Identifier

When visiting a URL with a fragment identifier:

http://www.example.com/?utm_campaign=campaign&utm_medium=medium&utm_source=source#fragment

clearUTM removed the UTM codes and the hash value:

http://www.example.com/

Should be left with this:

http://www.example.com/#fragment

JS error if no jQuery present

The Dependencies says jQuery is optional, but if I don't include it (or set a dummy value for jQuery), I get a JS error in current Chrome, Safari and Firefox.

I only need simple "page view" tracking on a page and don't want to include jQuery if I don't need to.

screen shot 2016-05-23 at 5 09 10 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.