Closed Bug 847748 Opened 12 years ago Closed 12 years ago

Please provide Google Analytics code for: towtruck.mozillalabs.com, hub.towtruck.mozillalabs.com

Categories

(Websites :: Web Analytics, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: swex, Unassigned)

Details

Full website address: http[s]://towtruck.mozillalabs.com, https://hub.towtruck.mozillalabs.com Explain the goal and use-case of having web analytics on this website. - tracking traffic to and from the user-facing towtruck site through the ga.js collection method (http[s]://towtruck.mozillalabs.com) - tracking embedding of towtruck.js, session usage through the Measurment Protocol collection method if available (https://hub.towtruck.mozillalabs.com) Do you have requirements to track user interactions on your website? For example, how many people have clicked a button on a page, filled out a form, or went through a pre-defined funnel? yes. Define the people who should have access to the reports. - TowTruck team members - Labs leadership swex@mozilla.com ibicking@mozilla.com adruck@mozilla.com dascher@mozilla.com (note: we just need the snippet/code, we will implement). Do we have access to the Measurement Protocol? If not, could we request it? https://developers.google.com/analytics/devguides/collection/protocol/v1/
Will the actual http requests be coming from towtruck.mozillalabs.com or hub.towtruck.mozillalabs.com?
ga.js will be included on towtruck.mozillalabs.com The requests using the Measurement Protocol will originate from hub.towtruck.mozillalabs.com
(In reply to Simon C. Wex from comment #2) > ga.js will be included on towtruck.mozillalabs.com > > The requests using the Measurement Protocol will originate from > hub.towtruck.mozillalabs.com Do you have any issues on using the main GA web property for mozillalabs.com? I can create a separate profile for towtruck and filter and thus the reports will still be all separate. It just makes the administration of it a bit easier and doesn't require having to create another web property.
I don't see any problem with that from my end as long as there aren't issues with granting TowTruck team members access to GA for creating goals, viewing reports etc.
Here is the code that should be placed just before the closing </head>: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-35433268-28']); _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>
All users added from comment 0.
> Do we have access to the Measurement Protocol? If not, could we request it? https://developers.google.com/analytics/devguides/collection/protocol/v1/ Yes, you should be able to use it. If there is any problems or questions, we have premium support.
Awesome Chris, thanks.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.