AbdFatah / analytics-issues

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

Advanced Segment Not Returning Correct Result (Data in Analytics is showing different) #128

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
--------------------------------------------------------------------------
NOTE: This issue tracking system is for developer products only.  If you
are not a developer/programmer and have a problem with a Google web site,
please report the problem to the appropriate group.  More information can
be found here: http://www.google.com/support/
--------------------------------------------------------------------------

Name of API affected:
Analytics Data Export API

Issue summary:
API is not returning correct results for advanced segments

Steps to reproduce issue:
This Visitor Query pulls 2 months data for a client(Jan'11-Feb'11):
https://www.google.com/analytics/feeds/data?max-results=0&start-date=2011-01-01&
end-date=2011-02-28&dimensions=ga%3Acountry%2Cga%3Aregion%2Cga%3Adate%2Cga%3Asou
rce%2Cga%3Amedium%2Cga%3Akeyword&metrics=ga%3Abounces%2Cga%3Aexits%2Cga%3AnewVis
its%2Cga%3Apageviews%2Cga%3AtimeOnPage%2Cga%3AtimeOnSite%2Cga%3Avisits%2Cga%3Ago
alCompletionsAll%2Cga%3Aentrances&segment=gaid%3A%3A133206194&ids=ga%3A16506504

This Visitor Query pulls 1 month data for a client(Jan'11):
https://www.google.com/analytics/feeds/data?max-results=0&start-date=2011-01-01&
end-date=2011-01-31&dimensions=ga%3Acountry%2Cga%3Aregion%2Cga%3Adate%2Cga%3Asou
rce%2Cga%3Amedium%2Cga%3Akeyword&metrics=ga%3Abounces%2Cga%3Aexits%2Cga%3AnewVis
its%2Cga%3Apageviews%2Cga%3AtimeOnPage%2Cga%3AtimeOnSite%2Cga%3Avisits%2Cga%3Ago
alCompletionsAll%2Cga%3Aentrances&segment=gaid%3A%3A133206194&ids=ga%3A16506504

I am trying to access the advanced segment of a particular website.
There are two issues here:
   The extracted data does not match the google analytics data and
   The filtered one month data from the first query does not match the data extracted from the second query

Please let me know if you need more information on this.

Thank you 

Expected output:
Data matching to what I see in analytics for the same advanced segement

Actual results:
Data results are different

Notes:
Provide any additional information which might be useful here. Feel free to
attach screenshots or sample code which demonstrates the issue being
described.

Original issue reported on code.google.com by mshm...@gmail.com on 10 Jun 2011 at 4:49

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:05

GoogleCodeExporter commented 9 years ago
Discussed with Nick from API group.

2 potential enhancements.

1. Capability to identify / differentiate between sampling limits.
2. Enable to control when sampling kicks in and wait longer (either one level 
or two levels up 2mil rows vs 500k)

Original comment by mshm...@gmail.com on 22 Jul 2011 at 8:33

GoogleCodeExporter commented 9 years ago
How do I determine if the result is sampled or not?  There is no method 
"getcontainsSampledData" associated with the datafeed which can provide that 
information.

-Tripti
(Cervello Inc)

Original comment by taur...@mycervello.com on 2 Aug 2011 at 7:37

GoogleCodeExporter commented 9 years ago
Sample code to determine sampling is here:
http://code.google.com/p/ga-api-java-samples/source/browse/trunk/src/v2/DataFeed
Example.java

I am attaching a screen shot where getContainsSampledData() method is being 
used and I have highlighted that method. But I am not able to access that 
method in the our api implementation which is written in java. 

And also I don't see it in the Google Data APIs Client Library. This is the 
link to the library:
http://code.google.com/apis/gdata/javadoc/com/google/gdata/data/analytics/DataFe
ed.html

Has this method been recently added to the api? I am currently using version 
2.1 of the gdata-analytics jar.

Original comment by taur...@mycervello.com on 2 Aug 2011 at 9:04

Attachments: