You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added my property's analytics code as an environmental variable on Heroku, as I've done with many other sites, but this doesn't seem to be working.
The text was updated successfully, but these errors were encountered:
Any analytics packages have to be handled in a special way due to Turbolinks. The Google Analytics script should already be loaded in the page before the _gaq.push is triggered.
Double check that you have analytics configured in config/analytics.yml. If a Google Analytics key is provided, the script should automatically be injected for you.
Please let me know if this works. It could be a regression bug, but it used to be working just fine.
Has anyone else been successful in implementing Google Analytics with the existing code?
I've compared the app/views/layouts/_analytics.html.haml with the code on the Google Developer page, and there's a difference. Where Google's has:
There is only:
I've added my property's analytics code as an environmental variable on Heroku, as I've done with many other sites, but this doesn't seem to be working.
The text was updated successfully, but these errors were encountered: