Google Analytics issues

Hello,

I have Google Analytics for all child websites. This works fine for some days.

Every week or so my Google Analytics stops working and give an error. I have to delete GA account and add again. Very annoying.

This is the error:

An error occured: { “error”: { “code”: 401, “message”: “Request is missing required authentication credential. 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”: “Login Required.”, “domain”: “global”, “reason”: “required”, “location”: “Authorization”, “locationType”: “header” } ], “status”: “UNAUTHENTICATED” } }
Please check your settings, try reconnecting to your Google Analytics account in the settings.

When I delete my GA account in mainwp and add again then it works fine again. For few days then error appears again. What to do?

I see same issue here but no solution Google Analytics disconnect evry 3 days

Hi @alainL - Looks like an API authentication error… You are better to open a ticket with the support.

@alainL Take your app out of testing mode by publishing it.

See Step 6 here: Create Google Analytics Client ID and Client Secret - MainWP Documentation

1 Like

Thank you! I followed those steps and for now I am still connected. No issues so far.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.