Closed Bug 1109187 Opened 10 years ago Closed 10 years ago

Implement Google Analytics on [moztrap.mozilla.org]

Categories

(Websites :: Web Analytics, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Unassigned)

References

Details

The FQDNs are: https://moztrap.mozilla.org/ (prod) https://moztrap.allizom.org/ (stage) https://moztrap-dev.allizom.org/ (dev) The people who should have access are: pbengtsson@mozilla.com cdawson@mozilla.com sdonner@mozilla.com gmealer@mozilla.com ctalbert@mozilla.com We want this to find out who's using what reports. We will want to use _trackPageview to track AJAX requests too.
Tag to be placed before closing </head>: <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-49796218-15', 'auto'); ga('send', 'pageview'); </script>
This tag is slightly different than previous tags as this is the new universal analytics as classic GA analytics is deprecated. All users from comment 0 have been added.
Once the tag is on the website, log into GA, go to real time reporting and ensure you see requests coming through for all instances. You can verify they are you by just adding ?peterbe=cool to the URL and viewing the real time content report to see the parameter show up.
It works! We can now see reports for MozTrap. Thanks!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.