Closed Bug 1089922 Opened 10 years ago Closed 10 years ago

Implement Google Analytics on tools.taskcluster.net and docs.taskcluster.net

Categories

(Websites :: Web Analytics, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jonasfj, Unassigned)

Details

We have two purely static sites with UI for TaskCluster (buildbot replacement).

 - tools.taskcluster.net (inspect tasks, create task, administrative tasks)
 - docs.taskcluster.net (documentation)

It would be great if we could have a clue about whether or not people uses these resources. And if so to what extend and how they are used.
As we add more tools it would be particularly useful to know which tools people use often, so that can make them more visible and prioritize fixing paper-cuts on such tools. Same arguments can be made for documentation pages.
We won't use these stats for much, but it's trivial to add; besides the only thing that motivates developers to write documentation is visitors :)

Note, These sites are mostly interesting to developers.

Following LDAPs should have access:
  jojensen@mozilla.com
  jlal@mozilla.com
  jhford@mozilla.com
  garndt@mozilla.com
(we might add more over time)


I'll take responsibility to adding tracking codes to the sites.
So if you post them here it should be done.

Remark, DNS setup for tools.taskcluster.net is tracked in bug 1089915; but that shouldn't block issuing a tracking codes.
Tracking code:

<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-12', 'auto');
  ga('send', 'pageview');

</script>
The same code can be used on both sites as there is a hostname filter on two separate profiles.
users in comment 0 have been added.
Thanks for the quick response.

I deployed this yesterday, and see users when looking at realtime events. So I expect things to be working. Hopefully page-count will show tomorrow.
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.