Closed
Bug 826792
Opened 12 years ago
Closed 12 years ago
[Google Analytics] Track KB votes in Google Analytics
Categories
(support.mozilla.org :: General, defect, P2)
support.mozilla.org
General
Tracking
(Not tracked)
VERIFIED
FIXED
2013Q1
People
(Reporter: ibai, Assigned: rrosario)
References
Details
(Whiteboard: u=sumo-team c=analytics p=1 s=2013.3)
We want to track the voting system in Google Analytics. In other words, we want to record the "Helpful" and "Unhelpful" votes so we can cross this data with other data that we collect in Google Analytics.
My recommendation is to use Event Tracking, by paring an event for each of these clicks. We need to trigger the following events whenever the button is clicked (i.e. using OnClick)
We want to differentiate the clicks on the votes of the sidebar and the ones in the bottom to understand the usage of each of them.
(forgive my PHP notation ;) )
SideBar - Helpful vote:
_gaq.push(['_trackEvent', 'Forum Votes', 'Sidebar - Helpful', $article_slug]);
SideBar - Not Helpful vote:
_gaq.push(['_trackEvent', 'Forum Votes', 'Sidebar - Not Helpful', $article_slug]);
Bottom - Helpful vote:
_gaq.push(['_trackEvent', 'Forum Votes', 'Bottom - Helpful', $article_slug]);
Bottom - Not Helpful vote:
_gaq.push(['_trackEvent', 'Forum Votes', 'Bottom - Not Helpful', $article_slug]);
As usual, more information can be found here:
https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
Assignee | ||
Comment 1•12 years ago
|
||
After Bug 826787, this one should be easy -> 1pt
Priority: -- → P2
Whiteboard: u=sumo-team c=analytics p=1 s=2013.2
Target Milestone: --- → 2013Q1
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → rrosario
Assignee | ||
Comment 2•12 years ago
|
||
Falling to next sprint.
Whiteboard: u=sumo-team c=analytics p=1 s=2013.2 → u=sumo-team c=analytics p=1 s=2013.3
Assignee | ||
Comment 3•12 years ago
|
||
Here is what I went with for consistency with the other events already implemented:
_trackEvent('Article Vote', 'sidebar - Helpful', 'download-and-install-firefox-android / en-US')
_trackEvent('Article Vote', 'footer - Not Helpful', 'update-firefox-latest-version / pt-BR')
_trackEvent('Article Vote', 'mobile - Helpful', 'superheroes-wanted / es')
Assignee | ||
Comment 4•12 years ago
|
||
Pull request:
https://github.com/mozilla/kitsune/pull/1123
Assignee | ||
Comment 5•12 years ago
|
||
Deployed to prod now:
https://github.com/mozilla/kitsune/commit/7cd4502f3df106504943c3b3c91581549b366d3f
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
•