AbdFatah / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Query for ga:visits by ga:date gives wrong answers if timeframe is wider than some threshold #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Name of API affected:
Analytics Data Export API

Issue summary:
Query for ga:visits by ga:date gives wrong answers if timeframe is wider
than some threshold

Steps to reproduce issue:
1. query for last week
2. query for last year
3. compare values

Expected output:
What do you expect to see after performing the above steps?
I expect the values for a given day to be the same regardless of how may
days are requested

Actual results:
What do you actually see after performing the above steps?
visit counts decrease as timeframe is increased

Notes:
Several ShufflePoint customers have complained about this. We just added a
work-around which is to query each day separately.

Original issue reported on code.google.com by back5...@gmail.com on 9 Nov 2009 at 5:12

GoogleCodeExporter commented 9 years ago
I reproduce this ERROR to, in range of one day the number of visits by the 
analytics
page are 76 and by my code are 73, follow the code used by me.

query.setStartDate("2009-11-30");
        query.setEndDate("2009-11-30");

query.setDimensions("ga:source,ga:pageTitle,ga:country,ga:city,ga:latitude,ga:lo
ngitude,ga:hour");
        query.setMetrics("ga:pageviews,ga:visits,ga:timeOnPage,ga:timeOnSite");
        query.setSort("-ga:hour");

Original comment by danielun...@gmail.com on 2 Dec 2009 at 2:37

GoogleCodeExporter commented 9 years ago
@back5576
I bet you are having a problem with sampling.  The 1 week report likely does 
not use
sampling but the 1 year report easily could use sampling. Check the confidence
interval for each metric in the response feed.

@danielunesp02
Does this happen with reports for periods further in the past? We find for our 
own
sites we need to wait 48 hours before the data all appears "correct and in sync"

Original comment by freeman...@gmail.com on 17 Dec 2009 at 10:23

GoogleCodeExporter commented 9 years ago
Hi,

In the future, please ask questions like this to our public group before 
creating an issue.

This is indeed working as expected and is a "feature" of GA. Currently there is 
a sampling limit of 500k visits or 1M "hits" when requesting a 
segment of users. Segments can be explicitly defined through the segment 
parameter -or- implicitly used with certain combinations of 
dimensions and metrics.

Original comment by nickski1...@gmail.com on 30 Dec 2009 at 9:24

GoogleCodeExporter commented 9 years ago
Removing an obsolete label that was used when these issues were in the 
gdata-issues project.

Original comment by jrobbins@google.com on 21 Jul 2011 at 10:04