Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

[Fix bug 836981] Remove WebTrends add Google Analytics #357

Merged
merged 1 commit into from Mar 5, 2013

Conversation

bensternthal
Copy link
Contributor

Note I did not see the need to add the GA code to settings. This code only appears in a single place.

@akatsoulas
Copy link
Contributor

Please add the bug number at the beginning of the commit message, e.g. [fix bug BugId].

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script> No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a thought, maybe you could use something like this

https://github.com/mozilla/mozillians/blob/master/templates/includes/google_analytics.html

where GA_ACCOUNT_CODE is stored in settings/local.py, with the actual key
only on the production server, so that we can avoid hits from local instances, dev and stage servers.
You can also update base.py with GA_ACCOUNT_CODE = None.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We restrict this data in google analytics using a filter, so no data from local dev or stage will show up in reports.

This is only used in one place so I am not sure if we want to add it to settings.

Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case, please ignore my previous comment.

@bensternthal
Copy link
Contributor Author

Git commit message updated.

@akatsoulas
Copy link
Contributor

r+ 🍺

akatsoulas added a commit that referenced this pull request Mar 5, 2013
[Fix bug 836981] Remove WebTrends  add Google Analytics
@akatsoulas akatsoulas merged commit 10658cd into mozilla:master Mar 5, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants