0.1.1 • Published 9 years ago
originjs v0.1.1
OriginJS
Help to track visitors
Requirement
- google analytics installed
Getting started
From bower
bower install originjs --save
From npm
npm install originjs --save
How it works
var origin = new $Origin();
origin.getSource() //=> return utm_source
origin.getMedium() //=> return utm_medium
origin.getContent() //=> return utm_content
origin.getCampaign() //=> return utm_campaign
origin.getTerm() //=> return utm_term
origin.getParams() //=> return url params in object type
Contributing
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Added some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
Licence
MIT