Remetric tracks your user data in a snap!
This gem interacts with our API.
Add this line to your application's Gemfile:
gem 'remetric'
And then execute:
$ bundle
Or install it yourself as:
$ gem install remetric
Key
is always required!
r = Remetric.new "#{remetric_api_token}"
r.track "{{ name }} signed in with {{ email }}.", {
key: user.id,
email: user.email,
name: user.name,
last_sign_in: Time.now.to_i,
comments: user.comments.count
}
r.save_contact({
key: user.id,
email: user.email,
name: user.name
})
- 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