0.1.1 • Published 9 years ago

originjs v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Licence

MIT
0.1.1

9 years ago

0.1.0

9 years ago