Keep track of open/click rates
Please don't use this is still in development
Add this line to your application's Gemfile:
gem 'track_rate'
And then execute:
$ bundle
Or install it yourself as:
$ gem install track_rate
Add this to your config/routes.rb
mount TrackRate::Engine, at: "/track_rate"
When you send you will need to add a call to track the send. When you do this pass the tracking_object
for example an instance of user and a service_key
for example email
.
TrackRate::ProcessSend.perform(user, service_key)
Finally set up your provider to make post requests when an event occurs.
SendGrid: https://sendgrid.com/docs/API_Reference/Webhooks/event.html with webhook URL as <www.mywebsite.com>/send_grid/open
Using the service_key
as email
- SendGrid
PRs to track other providers welcome!
The gem is available as open source under the terms of the MIT License.