Closed
Bug 851678
Opened 13 years ago
Closed 12 years ago
Implement Google Analytics on nextbillionvoices.com
Categories
(Websites :: Web Analytics, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cmore, Assigned: misteranderson)
Details
Website: http://nextbillionvoices.com
Reports: Standard ones
Access: bmunsterteiger@mozilla.com, pscanlon@mozilla.com
| Reporter | ||
Comment 1•13 years ago
|
||
Please place this code above the closing </head> tag:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-35433268-32']);
_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>
| Reporter | ||
Comment 2•13 years ago
|
||
Google emailed to enabled premium.
| Reporter | ||
Updated•13 years ago
|
Assignee: nobody → misteranderson
| Reporter | ||
Comment 4•13 years ago
|
||
misteranderson: Let me know once you add the code to the template and I will review that I can see traffic in GA.
| Reporter | ||
Comment 5•13 years ago
|
||
Premium enabled.
Please add this to the template above the closing </head> tag and I will verify the data is flowing in.
| Reporter | ||
Comment 6•13 years ago
|
||
If we have time, we can implement GA events. Just call this via JavaScript through specific user events *after* the tag from comment 1 is added to the website.
_gaq.push(['_trackEvent', 'category', 'action', 'optional_label']);
category='globe' or 'menu' or 'share'
action='click'
optional_label='click globe' or 'open location' or 'close location' or 'open share' or 'close share' or 'one voice' or 'many voices'
Does that make sense?
| Assignee | ||
Comment 7•13 years ago
|
||
Hi,
Google Analytics is implemented now on http://nextbillionvoices.com
I have also put in a test event tracking call, when you click / tap on the globe now, it should initiate a call to:
_gaq.push(['_trackEvent', 'globe', 'click', 'click globe']);
Can you verify you're seeing both the index.html page call and the event? If it looks happy, I'll go ahead and add the other event calls as well.
a
| Reporter | ||
Comment 8•13 years ago
|
||
Perfect. I have verified that I can see the page view information and I am able to see the click events on the glove. Nice work.
| Reporter | ||
Comment 9•12 years ago
|
||
I can see data coming into this profile. Closing this bug.
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.
Description
•