Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I set to NOT use the debug version of google analytics ? #52

Closed
Ranhiru opened this issue Aug 31, 2015 · 3 comments
Closed

How do I set to NOT use the debug version of google analytics ? #52

Ranhiru opened this issue Aug 31, 2015 · 3 comments

Comments

@Ranhiru
Copy link

Ranhiru commented Aug 31, 2015

I ran it locally and thought that because it's running on development environment, the gem decided to use the debug version of the analytics.js

However even when pushed to production environment, it still requests for the analytics debug js.

How do I stop this from happening ?

@jhilden
Copy link
Contributor

jhilden commented Aug 31, 2015

@Ranhiru I believe that you are using the "Google Analytics Tracking Code Debugger" browser extension, which will automatically add the ga_debug.js script to the current page. Could that be the case?

The code in rack-tracker will only add the regular analytics.js script, as you can see here: https://github.com/railslove/rack-tracker/blob/master/lib/rack/tracker/google_analytics/template/google_analytics.erb#L7

see: https://developers.google.com/analytics/resources/articles/gaTrackingTroubleshooting#usingDebugger

@Ranhiru
Copy link
Author

Ranhiru commented Aug 31, 2015

Bingo! That was the case. My bad. Apologies.

@Ranhiru Ranhiru closed this as completed Aug 31, 2015
@DonSchado
Copy link
Collaborator

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants