Errors on Google import using Admin page

I tied importing Google analytics via the Admin page but I’m receiving a long error:

Error on day 2017-05-15, { “error”: { “code”: 401, “message”: "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", “errors”: [ { “message”: “Invalid Credentials”, “domain”: “global”, “reason”: “authError”, “location”: “Authorization”, “locationType”: “header” } ], “status”: “UNAUTHENTICATED” } }

I have no idea how to debug this. Any help?

2 previous (unresolved) posts about this problem… I suggest continue on the older one:

I’m returning to my post because I could not find help in the others.
First let me point out that your video tutorial is so outdated compared to the current GA dashboard. So I’m using the text tutorial.

I’m at point 21 of the tutorial (Click on Add URI under Authorized redirect URIs where it says that a special URL/query/ should be appended to the domain), but on authorizing the importer I get a “could not verify token” error, so I have a doubt:
my Matomo runs on-premise under https://analytics.mysite.com but I also use Wordpress and the tutorial suggests to use https://mysite.com/wp-content/plugins/matomo/app/
yet my plugin has a different name https://mywebsite.com/wp-content/plugins/wp-piwik/ and no /app folder

So, should use https://analytics.mywebsite.com/index.php?module=....
or https://mywebsite.com/plugins/wp-piwik/index.php?module=....
or what?

I need some help from the Matomo staff. Thank you.

@innocraft, I am a little bit lost here… :wink:

I’m lost too, but I think it’s the tutorials that are lacking information. Let’s recap:
I have on-premise but on creating the OAuth I don’t know what should I write in the Authorized redirect URIs field because I cannot determine if I must include my on-premise url or the Wordpress one. The confusion is also created because I don’t have /wp-content/plugins/matomo/app/ but /wp-content/plugins/wp-piwik/