wagalytics icon indicating copy to clipboard operation
wagalytics copied to clipboard

Invalid Credentials

Open WrapTheCode opened this issue 6 years ago • 1 comments

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?

WrapTheCode avatar Sep 18 '19 12:09 WrapTheCode

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

KalobTaulien avatar Dec 04 '19 17:12 KalobTaulien