Telman Yusupov
unread,Mar 7, 2012, 2:45:40 PM3/7/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-analytics...@googlegroups.com
Hello Nick,
I’ve noticed the following behavior when requesting data with Custom Variables:
The resultset of a query with CV dimensions is an intersection of the rows where CV values are not null. If there is no data for a requested CV, then the whole resultset is null. This is different from behavior for other, non-CV dimensions where null data is not dropped but shown as “(not set)” value.
My question:
How we can get queries with CVs in them behave in the same way as queries without them?
The issue is best illustrated by a series of simplified examples:
Scenario 1
- We have setup one CV
- On March 1, we had 100 visits in total, 15 of those used CV
- On March 2, we had 150 visits, with no CV used
Query 1
Dimensions: ga:date
Metrics: ga:visits
Start-Date=End-Date: March 1
Result: {ga:date March 1, ga:visits 100}
Query 2
Dimensions: ga:date,ga:customVarValue1
Metrics: ga:visits
Start-Date=End-Date: March 1
Result: {ga:date March 1, ga:customVarValue1 CV1, ga:visits 15}
When querying against non-CV dimensions for which we have no traffic (i.e. ga:adGroup as we don’t use AdWords), we see that there was no data for the requested dimension, but the total number is reported correctly as shown in Query 3:
Query 3
Dimensions: ga:date,ga:adGroup
Metrics: ga:visits
Start-Date=End-Date: March 1
Result: {ga:date March 1, ga:adGroup (not set), ga:visits 100}
However, this is not behavior we get with a query that has CV in it:
Query 4
Dimensions: ga:date, ga:customVarValue1
Metrics: ga:visits
Start-Date=End-Date: March 2
Result: { } – nothing, no data returned at all
Expected result for Query 4 is:
{ga:date March 2, ga:customVarValue1 (not set), ga:visits 150}
Finally, the scenario with more than one CV:
Scenario 2
- We have setup two CV
- On March 1, we had 100 visits in total, 15 of those used CV1, 20 used CV2 and 8 used both CV1 and CV2 and the rest had no CVs.
Query 5
Dimensions: ga:date, ga:customVarValue1, ga:customVarValue2
Metrics: ga:visits
Start-Date=End-Date: March 1
Result: {ga:date March 1, ga:customVarValue1 CV1, ga:customVarValue2 CV2, ga:visits 8}
The correct result is:
{
ga:date March 1, ga:customVarValue1 CV1, ga:customVarValue2 CV2, ga:visits 8
ga:date March 1, ga:customVarValue1 CV1, ga:customVarValue2 (not set), ga:visits 7
ga:date March 1, ga:customVarValue1 (not set), ga:customVarValue2 CV2, ga:visits 12
ga:date March 1, ga:customVarValue1 (not set), ga:customVarValue2 (not set), ga:visits 73
}
Thank you very much in advance for your help,
Telman Yusupov