Closed Bug 851678 Opened 13 years ago Closed 12 years ago

Implement Google Analytics on nextbillionvoices.com

Categories

(Websites :: Web Analytics, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cmore, Assigned: misteranderson)

Details

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>
Google emailed to enabled premium.
users in comment 1 added.
Assignee: nobody → misteranderson
misteranderson: Let me know once you add the code to the template and I will review that I can see traffic in GA.
Premium enabled. Please add this to the template above the closing </head> tag and I will verify the data is flowing in.
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?
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
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.
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.