Problems with source and medium filter

497 views
Skip to first unread message

Jason

unread,
May 20, 2013, 6:14:20 PM5/20/13
to google-analytics...@googlegroups.com
We have recently noticed a problem with the data being returned for a request with the following filters:

ga:source==google;ga:medium==organic,ga:medium==cpc

This should report data for traffic with the source of "google" and a medium of either "organic" or "cpc" and has worked without problem in the past.  This is now returning all zeroes for some domains (it seems to be limited to domains that have cpc traffic).

Interestingly, the following filters for the same domain return non-zero data:

ga:source==google;ga:medium==organic
ga:source==google;ga:medium==cpc
ga:source==bing;ga:medium==organic,ga:medium==cpc

Here is a full example request (with the profile id removed) that is failing:
https://www.googleapis.com/analytics/v2.4/data?ids=ga: 000000&dimensions=ga:date&metrics=ga:pageviews,ga:visits,ga:timeOnSite,ga:bounces&sort=ga:date&filters=ga:source%3D%3Dgoogle;ga:medium%3D%3Dorganic,ga:medium%3D%3Dcpc&start-date=2013-04-20&end-date=2013-05-19&start-index=1&max-results=1000

Luis Pereira

unread,
May 20, 2013, 6:41:48 PM5/20/13
to google-analytics...@googlegroups.com
Not sure if it is related, but we also noticed a few weeks a ago an issue with the medium dimension. The following query which used to work fine started to return zero values for the AdWords metrics:

dimensions=ga:campaign
metrics=ga:visits,ga:impressions,ga:adClicks,ga:adCost,ga:CTR,ga:CPC,ga:RPC,ga:ROI,ga:margin
filters=ga:medium==cpa,ga:medium==cpc,ga:medium==cpm,ga:medium==cpp,ga:medium==cpv,ga:medium==ppc
sort=-ga:visits

Making further test we notice the issue was with the filter condition ga:medium==cpm

We took it out and everything started to work again. Really strange behavior. I didn't hear a word about it's explanation.


2013/5/21 Jason <jaso...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google Analytics Reporting API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-data-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Aaron Toledo

unread,
May 31, 2013, 1:30:10 AM5/31/13
to google-analytics...@googlegroups.com
Check to see if your data is sampling. Look for the 'containsSampledData' flag. If its True, trying reducing the date range. 

I don't think this part makes a difference, but try ga:source==google;ga:medium=~(organic|cpc)
Reply all
Reply to author
Forward
0 new messages