• Resolved Simon

    (@orangemonkey777)


    An infinite loop of
    1. “Issue accessing data: You need to reauthenticate your Google account.”
    2. Choose an account to continue to Site Kit
    3. Grant Site Kit permission, Edit Google Analytics management entities ALLOW
    4. Manage Google Analytics Account users by email address ALLOW
    5. View your Google Analytics data. View your configuration information ALLOW
    6. View and manage your Google Analytics data. View and manage your configuration information ALLOW
    7. Confirm your choices ALLOW
    8. => GOING BACK TO THE SITE, AND REPEAT WITH ASKING FOR 1….

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    @orangemonkey777 Thanks for reporting. Can you try to firstly reset Site Kit (Site Kit > Settings > Admin Settings > Reset Site Kit) before then deleting the plugin in full. After doing so please attempt setup once more, using a Chrome browser incognito window.

    If the issue remains please inform me of the following:
    – Your Site Health information
    – Your current web hosting provider

    You can also keep track of the following GitHub issue, which seems similar to the issue you are encountering.
    https://github.com/google/site-kit-wp/issues/1114

    Thread Starter Simon

    (@orangemonkey777)

    Sure. I logged in with my admin account and tried to reset plugin at (Site Kit > Settings > Admin Settings > Reset Site Kit). I did it several times and nothing happened. I repeated the steps 3 browsers (Chrome, Safari and Mozilla) without results. Plugin status was ‘Site Kit is connected’.

    After this I completely uninstalled and erased Site Kit, emptied all cache, and then reinstalled the newest Site Kit version from WordPress. I tried to press reset again, but nothing happened. Did the same Analytics installation steps as 100 times before without any effect.

    The server site health is no critical issues, but 4 minor issues: remove (two) inactive plugins, remove (two) inactive themes, a scheduled event is late (ads cron image upload event), and the Rest API encountered an unexpected result (403 code rest disabled). I’ve heard none of the above issues are important.

    The site is hosted by https://alidropship.com/hosting/ in TX, USA.

    Plugin Support James Osborne

    (@jamesosborne)

    @orangemonkey777 Many thanks for the update, very useful indeed. For the error within your Site Health information,Rest API encountered an unexpected result (403 code rest disabled) that’s could be the issue.

    Do you have a theme feature, plugin or function which restricts REST access?

    Renee Johnson

    (@reneesoffice)

    @orangemonkey777 along with the above question, could you confirm how many sites you’re using Site Kit on?

    Thread Starter Simon

    (@orangemonkey777)

    Thanks for the responses!

    Do you have a theme feature, plugin or function which restricts REST access?

    The service provider responded they do not have any specific Rest API restriction. They make one WordPress plugin that I’m using and say their plugins are not interfering with the Rest API. They mention that on of the cache plugins I use might be causing the issue.

    So I disabled all plugins (but the one they make), emptied all cache, and tried to install Google Site Kit again. I did the whole sequence twice without any improvement. Still the same error message.

    @orangemonkey777 along with the above question, could you confirm how many sites you’re using Site Kit on?

    I’m just using it on one site.

    • This reply was modified 5 years ago by Simon.
    Thread Starter Simon

    (@orangemonkey777)

    Could the issue that I somehow misconfigured the Google Analytics account? The error message is a bit cryptic.

    Renee Johnson

    (@reneesoffice)

    @orangemonkey777 thanks for the follow up! We’re investigating this issue now as a priority. Would it be possible for you to provide us the following to help troubleshoot further:

    1) On the page where you get the error, could you provide us any browser console errors? We are particularly looking for a “WP error” similar to one seen in this image. If you can open the arrows to see the full error message that would be helpful.

    You can provide a link to a screenshot using a service like Imgur or Jumpshare.

    2) In the browser console, could you paste the following copy (googlesitekit.setup) and press return/ enter. This will place details (non-sensitive) about your Site Kit setup on your clipboard. Please paste the contents in your reply.

    Here’s a short video on how to do it. Let us know if you have any questions at any point.

    Thread Starter Simon

    (@orangemonkey777)

    @reneesoffice Thanks for taking the issue seriously!

    I don’t get any particular error message in the browser, aside from “Issue accessing data
    You need to reauthenticate your Google account.” and “Analytics activation Analytics module needs to be configured COMPLETE ACTIVATION” in an endless loop.

    However, I activated dev mode and took screenshot of the console throughout the process. It seems the ‘disabled’ Rest API is causing an error message.

    View post on imgur.com

    Thread Starter Simon

    (@orangemonkey777)

    Here is the second part:

    {
    “isSiteKitConnected”: true,
    “isResettable”: true,
    “isAuthenticated”: true,
    “requiredScopes”: [
    “openid”,
    https://www.googleapis.com/auth/userinfo.profile”,
    https://www.googleapis.com/auth/userinfo.email”,
    https://www.googleapis.com/auth/siteverification”,
    https://www.googleapis.com/auth/webmasters”,
    https://www.googleapis.com/auth/analytics”,
    https://www.googleapis.com/auth/analytics.readonly”,
    https://www.googleapis.com/auth/analytics.manage.users”,
    https://www.googleapis.com/auth/analytics.edit”
    ],
    “grantedScopes”: [
    “openid”,
    https://www.googleapis.com/auth/userinfo.profile”,
    https://www.googleapis.com/auth/userinfo.email”,
    https://www.googleapis.com/auth/siteverification”,
    https://www.googleapis.com/auth/webmasters”
    ],
    “needReauthenticate”: true,
    “isVerified”: true,
    “isFirstAdmin”: true,
    “hasSearchConsoleProperty”: true,
    “showModuleSetupWizard”: null,
    “moduleToSetup”: “”
    }

    Thread Starter Simon

    (@orangemonkey777)

    Here is a screenshot of the copy command.

    View post on imgur.com

    Renee Johnson

    (@reneesoffice)

    @orangemonkey777 for sure! We are looking into the issue for several others so those screenshots are helpful. Since you checked with your host and disabled your plugins (except the one provided by your host), I’ll circle with the team with this information thus far.

    There was an additional piece of information @jamesosborne inquired about above:

    Instructions on how to provide your Site Health Information alternatively you can provide a copy of this information in this form.

    We really appreciate your help!

    Renee Johnson

    (@reneesoffice)

    @orangemonkey777 thanks for the copy command!

    Thread Starter Simon

    (@orangemonkey777)

    @reneesoffice I did discover the problem with the Rest API. Apparently a setting in the cache plugin W3 Total Cache, which needs to be switched off under Performance > Page cache > Rest API. With this the error message under WP site health disappeared.

    I also saw an error message in the console relating to the cache plugin PhastPress, which I disabled.

    However, both those things didn’t fix the problem with Site kit. I installed it again and took similar screenshots as before.

    View post on imgur.com

    Adam Silverstein

    (@adamsilverstein)

    @orangemonkey777 Thanks for your ongoing troubleshooting and helpful screenshots.

    What do you see on the wp-admin side now, on the Site Kit page?

    Thread Starter Simon

    (@orangemonkey777)

    @adamsilverstein Here are a few screenshots taken a few minutes ago logged in as admin and after the approval process.

    View post on imgur.com

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Issue accessing data: You need to reauthenticate your Google account’ is closed to new replies.