Closed Bug 915298 Opened 11 years ago Closed 11 years ago

Implement Google Analytics on location.services.mozilla.com

Categories

(Websites :: Web Analytics, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hschlichting, Unassigned)

Details

The website is running at https://location.services.mozilla.com/.

I'd like to get the most basic version of GA for the site, to track simple visitor stats like country of origin, referrers and overall traffic. There's no need for any advanced analytics like funnels.

At first I'm the only person who needs access to the GA reports, with my Mozilla Google account hschlichting@mozilla.com

Thanks!
Hi Hanno,

Please place this snippet within the <head> tag. Let me know when it has been installed and i will verify that data is coming into GA. Thanks.

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-36116321-13']);
  _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>
Can you please use this tracking code instead. I've just updated the account #. Thanks.

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-35433268-41']);
  _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>
Thx for the quick reply, I added the snippet and hit the site a couple times.
Hi Hanno,

I'm seeing some data come into GA, but not for /stats...it doesn't look like the snippet has been added to that page. Can you please confirm?

Thanks.
The snippet is in the source code for /stats. I don't see any JS errors when visiting that page either, so it should really work. Maybe I had a copy in my local browser cache and thus didn't actually load the new page.

But I force reloaded now and saw the code in the page, so a hit should have been recorded.
Great. Thanks. I can see data coming into that page now. 

I've also added you to the account so you can review the data for yourself in GA. Feel free to ping me if you have any questions about reporting. Thanks.

Gareth
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Thx, I got access and it all seems fine.

Sorry, to bother you so soon, but could you give cpeterson@mozilla.com access to the reports as well?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
No problem. I've added cpeterson@mozilla.com to the GA account. Let me know if you would like to added anyone else. Thanks.
That everyone for now, promise! :)
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.