Forums » Help & Troubleshooting



Help with installing tracking code in Rails 4 application

I am attempting to install the clicky tracking code into my Rails 4.1 application. I have the tracking code in a partial that is included on every page. Tracking on a full page refresh works just fine.

When I click on a link within my application, Rails is using turbolinks to only load the content that needs to change. I tried taking the code that is located here, https://clicky.com/help/apps-plugins#rails4turbo and placed it in my application.js file. It isn't tracking pageviews when the application is using turbolinks.

What am I doing wrong? Javascript is not a strong skill of mine so it's probably something simple.

Posted Fri Feb 28 2014 4:40p by kjgiena***


You must be logged in to your account to post!