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

Invalid Credentials #36

Open
WrapTheCode opened this issue Sep 18, 2019 · 1 comment
Open

Invalid Credentials #36

WrapTheCode opened this issue Sep 18, 2019 · 1 comment

Comments

@WrapTheCode
Copy link

Hi

I have a problem.
My settings:

GA_KEY_FILEPATH =  os.path.join(BASE_DIR, 'analytics/analyticsfile.json')
GA_VIEW_ID = 'ga:000000000' - take from view id
code: 401
errors: [{…}]
message: "Invalid Credentials"

What can be wrong?

@KalobTaulien
Copy link
Collaborator

Hi @WrapTheCode

I ran into this as well, the Invalid Credentials error (User does not have the right credentials, or something along those lines)

To solve this I had to open my Google Analytics > Admin > User Management > Add User
And then add the Google IAM email address (you can find it in your analyticsfile.json file, or in your Google Cloud Console). It'll look something like this: [email protected]

The screen will look like this in your Google Analytics:

image

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

2 participants