UpendraSingh / analytics-issues

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

Sampled issues -Strange behavior #873

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

Hi,
We are working with Google Analytics PREMIUM retrieving data from the API 
available. We run every hour some queries (with the API) to extract from GA the 
information for "today". 
The problem is that the query we do at 2pm is coming with sampled data, at 3pm 
is coming unsampled data and then at 4pm is coming sampled again
​ and so on​. How is it possible that during the day the queries are coming 
sampled/unsampled data without following any logic? 

Thanks in advance.

---------------------------------------------------------------------------
NOTE: This tool is not designed to request help. It is only for reporting
issues and requesting features for the Google Analytics libraries.

If you are a developer and you need help, visit:
https://developers.google.com/analytics/help/

If you are not a developer and you need help, visit:
https://support.google.com/analytics
---------------------------------------------------------------------------
Name of affected component: Core Reporting API

Name of related library and version, if applicable (e.g. Java, Python,
HTTP, Objective-C, etc.):

Issue summary:
Provide a brief summary of the issue you're experiencing.

Steps to reproduce issue:
1.
2.
3.

Expected output:
What do you expect to see after performing the above steps?

Actual results:
What do you actually see after performing the above steps?

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 yoca...@gmail.com on 9 Feb 2016 at 5:56

GoogleCodeExporter commented 8 years ago
Processing: https://support.google.com/analytics/answer/6083694

It can take up time for data to be fully processed, for intraday requests it's 
quite likely that there are hits that are known but have not been processed 
into unsampled data.

If you have not done so already you could improve the liklyhood of getting 
unsampled data by setting the `samplingLevel` to HIGHER_PRECISION:
https://developers.google.com/analytics/devguides/reporting/core/v3/reference#sa
mplingLevel

The best place to ask questions about using and developing with Google 
Analytics APIs, libraries, and SDKs is on Stack Overflow. Make sure and use one 
of the following tags:

google-analytics — for general questions about Google Analytics.
google-analytics-api — for questions specific to one of the Google Analytics 
APIs.

Original comment by mcoh...@google.com on 9 Feb 2016 at 6:07