-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mismatch between pageviews on GA and the returned resultsof GetReportData #27
Comments
Apologies if the following is too basic, but a few things off the bat that could result in discrepancies:
When I've experienced data mismatches, I've often found the source was related to sampling, table.id mismatch, filters/segments, or the like. |
Hi Bobby, |
Dan, For more info on sampling, see https://support.google.com/analytics/answer/2637192?hl=en Another way to see if sampling is an issue is to simply rerun your query, but drop the Try rerunning your query like this:
Are there any messages in R about the query being sampled? If there are, then the mismatch is caused by sampling. If not, then neither GA interface nor the API should be using sampled data. In terms of my last point about dimensions, rather than wrangling with the data via
Again, if you see messages in R about sampling, then you'd need to rerun with But the above should match the pageview data reported in Behavior > Site Content > All Pages report in the GA interface if the data isn't being sampled. HTH EDIT: commented out the |
When I get strange results using the API I often use the Query Explorer (https://ga-dev-tools.appspot.com/query-explorer/) to double-check the results. |
Hi,
I followed the instructions for linking the core API, and I seem to get results, but when I run:
I get a mismatch between what I see on Google Analytics and the result from GetReportData. Any pointers?
Thanks and best wishing, I love your work!
Dan
The text was updated successfully, but these errors were encountered: