-
Notifications
You must be signed in to change notification settings - Fork 203
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
Can't perform authentication with guess-ga #328
Comments
Dont know about the plugin, but for the second case (using fetch), the documentation is out of date. What you really need is to generate a JWT auth client like so:
https://github.com/googleapis/google-auth-library-nodejs#json-web-tokens edit: changed the scope to |
Yeah! you'r right, except the relevant scope is: *** The DOCS should also mention opening a new service account in google and giving it a view permission for google analytics api (and exporting it to a json) and connecting this email to google analytics api. |
ah cool, I was getting an issue with that scope too |
@kasperstorgaard thanks for pointing this out! Would you have a moment to fix the documentation? |
@mgechev I'll take a stab at it |
@slavoroi you can check the guide by @kasperstorgaard https://github.com/guess-js/guess/tree/master/packages/guess-ga#ga. |
@slavoroi
|
Yap! it works :) |
@slavoroi would you open a PR to update what's missing? |
yap 👍 |
Can't seem to pass this code in main.js:
Opens a new chrome tab and clicking on my user get's me:
Also when trying:
throws Login Required.
I tried to give guess js read only permissions by email (mgechev@...) in google analytics but it didn't work.
versions:
"guess-parser": "0.4.15",
"guess-webpack": "0.4.15",
"guess-ga": "0.4.14"
Angular 8.2.14
The text was updated successfully, but these errors were encountered: