Skip to content
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

New Analytics API's Don't seem to work #65

Closed
cimotadev opened this issue Jan 20, 2022 · 3 comments
Closed

New Analytics API's Don't seem to work #65

cimotadev opened this issue Jan 20, 2022 · 3 comments

Comments

@cimotadev
Copy link

Great package! However I'm having some real trouble configuring it.
I've followed the steps in the readme and followed the advice in Issue 2, however I keep getting Bad Request (HTTP400) errors in the console.
image

I have set up the service account in Google Cloud Platform and I'm using the property ID from Google Analytics, however the dashboard won't load with the above errors in the console.

I've tried looking in Google Cloud Platform to view the API logs however there doesn't appear to be a log viewing facility for the Analytics API. It appears as though newer versions of the API (the only one apparently available when using their platforms) don't work? Is this right or am I just being daft?

@cimotadev
Copy link
Author

Configuring a special view using the UA identifier results in the following:
image
However the view ID from Google Analytics does not include the ga: prefix which I believe may be resulting in the error we're seeing.

@cimotadev
Copy link
Author

Further tweaking leads to the following output. Still receiving errors, however one of the graphs is now loading:
image
Any assistance you can provide with this integration issue would be greatly appreciated.

@cimotadev
Copy link
Author

Out of fairness to the author of the package I wanted to comment the resolution. Turns out that if there is NO DATA coming from the analytics API, the tables won't load and will give you the above error in the screenshot. To fix this, make sure you've set up the Tracking Code snippet correctly and generate some data for the Analytics API to return. Please bear in mind that the API may not return real-time results as there does appear to be some latency between live hits and the reporting on the dashboard. However, it does an incredible job so many thanks to the author for a great package and apologies for the premature concerns. Hopefully this helps to resolve issue #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant