A simple api wrapper for http://segment.io/ (Web analytics with radically improved user segmentation.)
Find the api docs here: https://segment.io/docs/rest-api
Add this line to your application's Gemfile:
gem 'rest-segment'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rest-segment
api = Segment::API.new('YOUR_API_KEY_GOES_HERE')
api.identify userId: "me@florianguenther.com", traits: {
"Attractiveness" : "high",
"Age" : 28
}
api.track userId: "me@florianguenther.com", event: "Upgraded Account", properties: {
"plan" : "pro"
}
Read the segment.io api docs for more information: https://segment.io/docs/rest-api
- 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