Drop-in Analytics support for your Rails applications running with Turbolinks. Add your analytics scripts in your application layout like you would normally do. Make sure your analytics tool is supported.
- Follow Turbolinks installation guide.
- Add
gem turbolinks-analytics
to your Gemfile. - Run
bundle install
. - Add
//= require turbolinks-analytics
to your Javascript manifest file. - Restart your server.