Closed Bug 809115 Opened 13 years ago Closed 12 years ago

Implement Google Analytics on https://developer.mozilla.org

Categories

(Websites :: Web Analytics, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aspivak, Assigned: groovecoder)

References

()

Details

https://developer.mozilla.org We need the general suite of GA metrics (traffic, locales,languages, referring pages) - as we work on the site redesign we will likely add additional things we want to track - Jean-Yves can add additional needs to this bug if i've missed something. MDN team (Ali Spivak, Jean-Yves Perrier, Luke Crouch) should have access to the reports. aspivak@mozilla.com
Do you want the code now to add out-of-the-box metrics or do you want to wait for the MDN redesign to be further along?
I vote for now so we can more easily see before/after metrics.
Here is the code that should be placed before the </head> in the MDN template: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-36116321-5']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>
Google has been emailed to enable this account for premium. I've added this to the Mozilla "big websites" account because the change of this site having multiple profiles is pretty high.
Premium has been enabled for this account.
Assignee: nobody → lcrouch
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/bbf04b1491dcac78fa99de6e9708deceefb22fa5 fix bug 809115 - add google analytics tracking https://github.com/mozilla/kuma/commit/d80a04822c2fe88e215469cc91470a9ad5b6694f Merge pull request #752 from groovecoder/google-analytics-809115 fix bug 809115 - add google analytics tracking
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
I've added everyone in the CC field with @mozilla.com emails to have access to this profile. You must log into Google Analytics with your @mozilla.com email. If you cannot gain access, you must file a mozilla.service-now.com request under "other user requests" to have your Google Apps password reset.
Ali: Will you need an export of historical MDN Webtrends data before the legacy WT service is disabled on March 21st? Also, do you have any need for WT on the site now? Since it has both GA and WT on the site, I would assume you have no need to keep WT on it any longer.
Flags: needinfo?(aspivak)
Ali: ^^
Flags: needinfo?(aspivak)
Ali is on PTO for the next couple of days. I will forward this to her when she gets back.
I'd love to get an export of the historical data from Webtrends so we can crunch some of the numbers if needed. We no longer need the WT code on the pages and it would be great to make it gone.
(In reply to ali spivak from comment #14) > I'd love to get an export of the historical data from Webtrends so we can > crunch some of the numbers if needed. > > We no longer need the WT code on the pages and it would be great to make it > gone. Just so you know, it is not raw logs or raw data. Basically, whatever you see in Webtrends now at an aggregate level is included in the CSV. If the reports in WT are useful now, you or anyone else can export them. You just go up to the top right of any report to export a CSV. You have to do this on a report-by-report basis and there is no master location for exporting. Openjck/Ali: Do you want to do some exports yourself and see if the data is useful? You will probably want to change the time frame to be the past year.
Will do this today and see how it goes :-)
Please add: jbennett@mozilla.com jleidel@mozilla.com lorchard@mozilla.com mfogels@mozilla.com To the Google Analytics profile for MDN.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to Luke Crouch [:groovecoder] from comment #17) > Please add: > > jbennett@mozilla.com > jleidel@mozilla.com > lorchard@mozilla.com > mfogels@mozilla.com > > To the Google Analytics profile for MDN. I've added these bug mfogels@mozilla.com does not appear in our Google Apps account. Can you talk to the service desk and see why Maris is not there yet?
Chris, the mfogels@ account should appear now.
Flags: needinfo?(chrismore.bugzilla)
(In reply to John Karahalis [:openjck] from comment #19) > Chris, the mfogels@ account should appear now. done!
Status: REOPENED → RESOLVED
Closed: 13 years ago12 years ago
Flags: needinfo?(chrismore.bugzilla)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.