Support » Plugin: Site Kit by Google - Analytics, Search Console, AdSense, Speed » Unable to receive access token

  • Resolved Joel Jones

    (@joeldjones)


    Every site I manage (about 50) uses Google Site Kit, and all of them have the same issue. I’m able to install Site Kit and set it up just fine. However, after a day or two I’ll log into the site and the Site Kit Summary widget on the WP Dashboard will say, “Data error in Analytics/Search Console,” “invalid_grant”

    If I go to the plugin page there’s this error: “unable to receive access token because of an invalid authorization code or refresh token. To fix this, redo the plugin setup.”

    So, I have to redo setup – which goes just fine, and then it’s working again. Until a few days later, same thing happens. This is on ALL 50 sites I manage. I have uninstalled/reinstalled. I’m using the latest version of Site Kit. I have reset the plugins.

    It’s as though Site Kit is expecting me personally, or my browser, to be logged into Google in order to see the Site Kit data.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Renee Johnson

    (@reneesoffice)

    @joeldjones thanks for reporting! Could you provide us the following information so we can investigate this further:

    1) Site Health information for a site that is currently experiencing the issue. You can provide it through this form.

    2) Do all of your sites have multiple Administrator role users with access to Site Kit (they have all gone through the set up process and can access Search Console and Analytics data)?

    Thread Starter Joel Jones

    (@joeldjones)

    Thanks @reneesoffice I just submitted the form.

    As to question #2 – there are technically other admins, but I’m the sole developer, so I’m really the only person that logs in. However, that does raise the question – does site kit have to be set up by every admin?

    Plugin Support Renee Johnson

    (@reneesoffice)

    @joeldjones thanks for the providing these details!

    I don’t see anything out of the ordinary from the Site Health information.

    Another question about your setup: are you using a single Search Console account and Google Analytics account to connect all sites?

    If so, you might be hitting some API limits which may prompt Site Kit needing to reconnect more often than normal. We investigated this previously in this issue. The recommendation found here might be helpful to prevent having to reauthorize.

    However, that does raise the question – does site kit have to be set up by every admin?

    Yes, to configure and view data in the dashboards each admin user needs to go through the setup process (to ensure the proper permissions). For some of the services, like Analytics, the users would also need to have administrative permissions for the properties on the platforms directly to view the data. Read more about permissions in this document.

    Thread Starter Joel Jones

    (@joeldjones)

    Another question about your setup: are you using a single Search Console account and Google Analytics account to connect all sites?

    If so, you might be hitting some API limits which may prompt Site Kit needing to reconnect more often than normal. We investigated this previously in this issue. The recommendation found here might be helpful to prevent having to reauthorize.

    That looks like it’s the issue. I’m a webmaster for an agency, so I’m using a single account for all analytics / search console.

    I think adding some kind of notice on Site Kit installation about the API limit would be extremely helpful.

    So in my case, based on that other thread, does that mean I can’t use Site Kit since I’m managing more than 50 sites? Or – does it mean I need to connect Site Kit to the site via different emails/accounts on every site?

    Plugin Support Renee Johnson

    (@reneesoffice)

    I think adding some kind of notice on Site Kit installation about the API limit would be extremely helpful.

    Thanks for this valuable feedback. I’ll share this with our team.

    So in my case, based on that other thread, does that mean I can’t use Site Kit since I’m managing more than 50 sites? Or – does it mean I need to connect Site Kit to the site via different emails/accounts on every site?

    You can definitely use Site Kit if you manage more than 50 sites. Note these API limits are not something Site Kit has direct control over as it relates to your Google and service accounts (Analytics for example) in general. In your case, you can connect different accounts for small groups of sites to prevent hitting these limits (per our testing 25 site/ services at a time per Google Account).

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.