› Forums › Post Pay Counter › Support › Error in Google Analytics authorization
We are based in Europe with a GMT+1/GMT+2 time zone - support replies may be delayed due to time zone differences with your country.
- This topic has 4 replies, 1 voice, and was last updated 2 years ago by Stefano.
-
AuthorPosts
-
September 11, 2022 at 7:27 am #198944OmarGuest
Hello,
Since a week ago and my site’s members complain about that there visits are not counted. When I looked at the plugin option page, I found these errors:
####################
Error: Error: 401: { “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”, “details”: [ { “@type”: “type.googleapis.com/google.rpc.ErrorInfo”, “reason”: “CREDENTIALS_MISSING”, “domain”: “googleapis.com”, “metadata”: { “method”: “analytics.gaapi.v3.AnalyticsManagementProfiles.List”, “service”: “analytics.googleapis.com” } } ] }
Please help me solve this problem.
Thank you
September 11, 2022 at 8:03 am #198983StefanoKeymasterHi Omar,
we’ve had to update our GA login flow to comply with changes from Google, but this seems to have broken existing logins on some websites. You will need to authorize the plugin again, but to do so you first need to revoke the current authorization. HOWEVER, doing so will currently also delete all your GA data, so I will work to release an update that decouples these two actions so that you can re-login without losing your data. Please be patient 1-2 days while I get this done, it will ship as a regular update and I will also notify you here 🙂
Sorry for the hiccup!A nice day,
StefanoSeptember 11, 2022 at 3:40 pm #199084StefanoKeymasterVersion 1.8.9.2 addresses the issue 🙂
September 11, 2022 at 4:06 pm #199097OmarGuestHi Stefano,
What steps should I take now? Should I just update the plugin or update then re-authorize the google login?
Thank you
September 11, 2022 at 4:10 pm #199099StefanoKeymasterHi Omar,
from the newsletter issue I am about to send:Around a week ago, with version 1.8.9.2, we pushed a change in the Analytics authorization flow to comply with changes from Google, which would have otherwise broken plugin functionality as of October 2022. The user experience is almost unvaried, but there has been slight changes under the hood. However, this has resulted in the current Analytics authorization getting broken on some sites, prompting site admins to revoke the current authorization and setting it up anew. Doing so would also erase all visits data though. With the latest version, we have decoupled the two actions, adding a specific button if you want to delete visits data, and making the authorization revoking button only signing you out of your Google account with PPC. So, in case you had this issue, after upgrading to version 1.8.9.2, you can de-authorize PPC and set it up again, with faith that your data will stay intact (hint: if you still get a warning that data will be deleted, then you have not updated version!).
It is likely that your data will be out of date by a few days – in that case, the next daily update should bring them up to date again with no further action. The WP-CLI commands can always help in pulling specific days of data otherwise.
-
AuthorPosts
- The topic ‘Error in Google Analytics authorization’ is closed to new replies.