[Google Analytics] Implement Custom Variables to track type of users

VERIFIED FIXED in 2013Q1

Status

support.mozilla.org
General
P2
normal
VERIFIED FIXED
5 years ago
5 years ago

People

(Reporter: ibai, Assigned: rrosario)

Tracking

unspecified
2013Q1

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: u=sumo-team c=analytics p=2 s=2013.2)

(Reporter)

Description

5 years ago
One of the things that we have been blind for a while is the ability to analyze how regular users use the support site compared to contributors. 

We can segment this traffic using GA Custom Variables. 

My recommendation is to create a Visitor Level variable that is written in the GA cookie whenever somebody is logged in successfully from the "Log In" button on the top. While these users are not necessarily contributors, it's a simple proxy. We can fine tune it if there's too much noise.

Whenever a user with these variable in the GA cookie generates a pageview or event it will have the additional information that the user was logged in.

To do so we need to add the following line to the GA code in the next page to the log-in page:

['_setCustomVar', 1, 'User Type', 'Registered', 1],

This line needs to be just before

['_trackPageview'],

To make sure that the first page they see after log-in already contains the additional information (i.e. the person generating that page view is a registered user).

For more information, refer to this article https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables or just let me know
(Assignee)

Updated

5 years ago
Depends on: 825606
(Assignee)

Comment 1

5 years ago
Do we just cared about LoggedIn vs NotLoggedIn? Or do we want to have finer grain, such as presence in certain groups makes them a 'Contributor' vs a signed in user asking a question.
Target Milestone: --- → 2013Q1
(Reporter)

Comment 2

5 years ago
Based on our IRC chat lets assign 3 different values to the variables depending on their groups:

If they belong to the Administrator and Contributor group:

['_setCustomVar', 1, 'User Type', 'Contributor - Admin', 1],

If they belong to the Contributors group:

['_setCustomVar', 1, 'User Type', 'Contributor', 1],

If they don't belong to any of these groups:

['_setCustomVar', 1, 'User Type', 'Registered', 1],

Thanks guys!
(Assignee)

Comment 3

5 years ago
Grabbing this.
Assignee: nobody → rrosario
Whiteboard: u=sumo-team c=analytics p= s=2013.2
(Assignee)

Updated

5 years ago
Priority: -- → P2
(Assignee)

Updated

5 years ago
Blocks: 825606
No longer depends on: 825606
(Assignee)

Comment 4

5 years ago
I think this is ~2pts
Whiteboard: u=sumo-team c=analytics p= s=2013.2 → u=sumo-team c=analytics p=2 s=2013.2
(Assignee)

Comment 5

5 years ago
(In reply to ibai from comment #2)
> If they belong to the Administrator and Contributor group:
> 
> ['_setCustomVar', 1, 'User Type', 'Contributor - Admin', 1],

I talked to Ibai, and we are going to change this case to just "If they belong to the Administrator group".
Maybe I'm misunderstanding, but the admin group should have about 12 people in it, hardly worth tracking, I'd assume?
(Reporter)

Comment 8

5 years ago
Kadir...adding that will give us the understanding of how the Admin tools are being used, even if they are not plenty and in the same way we can see how many pageviews are generated by them. We could have them as part of the contributors group but this way we have one extra level of granularity at very little cost.

Does it make sense?
(Assignee)

Comment 10

5 years ago
Deployed to prod!

Ibai, hopefully we'll see this on the GA side soon?
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
(Reporter)

Comment 11

5 years ago
Tomorrow we should have data...
(Reporter)

Comment 12

5 years ago
The info is being track properly.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.