ServerSideGa
A wrapper allowing you to post events to the Google Universal Analytics Server side API.
Installation
Add this line to your application's Gemfile:
gem 'server_side_ga'
And then execute:
$ bundle
Or install it yourself as:
$ gem install server_side_ga
Usage
Once installed you can call events and transactions.
Eg: ServerSideGa.event(tracking_code, client_id, category, action, label = nil, value = nil ) ServerSideGa.transaction( tracking_code, client_id, id, name, revenue, shipping = 0, tax = 0, currency = "USD", time = Time.now)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request