• Resolved Arno Peck

    (@arnopeck)


    Hello I have an error on every Site Kit’s widget, in admin or admin bar

    this is the JS error:
    Google Site Kit API Error method:GET datapoint:tag-permission type:modules identifier:analytics error:”<p>Si è verificato un errore critico sul tuo sito web.</p><p>Scopri di più riguardo la risoluzione dei problemi in WordPress.</p>”

    AND
    Failed to load resource: the server responded with a status of 500 ()
    https://MYDOMAIN.COM/wp-json/google-site-kit/v1/modules/analytics/data/accounts-properties-profiles?existingPropertyID=UA-XXXXXXX-88&_locale=user

    I followed the steps you suggested here:
    https://www.ads-software.com/support/topic/site-kit-showing-critical-error/#post-14607351
    Disabled and renabled the plugin,
    disconnected site kit,
    not able to reconnect because the errors

    Site Health – Site Kit Info

    Versione	1.35.0
    Versione PHP	7.4.20
    Versione WordPress	5.7.2
    URL del sito di riferimento	https://esgnews.it
    Modalità AMP	No
    Stato sito	Collegato tramite credenziali del sito
    Stato utente	Autenticato
    Numero di utenti connessi	2
    Moduli attivi	Site Verification,Search Console,Analytics,PageSpeed Insights
    Ambiti necessari	
    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.readonly: ?
    Capacità utente	
    googlesitekit_authenticate: ?
    googlesitekit_setup: ?
    googlesitekit_view_posts_insights: ?
    googlesitekit_view_dashboard: ?
    googlesitekit_view_module_details: ?
    googlesitekit_manage_options: ?
    Funzionalità	
    ga4setup: ?
    helpVisibility: ?
    ideaHubModule: ?
    serviceSetupV2: ?
    storeErrorNotifications: ?
    userFeedback: ?
    userInput: ?
    widgets.dashboard: ?
    widgets.pageDashboard: ?
    widgets.moduleScreens: ?
    Proprietà Search Console	https://MYWEBSITE.COM/
    ID account Analytics	Nessuno
    ID proprietà Analytics	Nessuno
    ID visualizzazione di Analytics	Nessuno
    Snippet di Analytics inserito	Sì

    What can I do?
    tanks

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

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

    (@jamesosborne)

    Many thanks for creating a new support topic. The 500 error you reported and the critical error indicate there may be server or hosting issues on your site. Can you perform the steps below so we can rule out third party plugin or theme conflicts:

    1. Login to your site from a Chrome browser incognito window
    2. Install and activate the Health Check & Troubleshooting plugin.
    3. Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
    4. From the same screen click on the “Available Plugins” tab at the top right and then click on the “Enable” option next to “Site Kit by Google”
    5. Attempt to view your Site Kit dashboard once more

    You can exit troubleshooting mode afterwards.

    If you encounter the same error can you provide a screenshot and any console errors were the below message appears:

    Google Site Kit API Error method:GET datapoint:tag-permission type:modules identifier:analytics error:”<p>Si è verificato un errore critico sul tuo sito web.</p><p>Scopri di più riguardo la risoluzione dei problemi in WordPress.</p>

    You can use a service such as Imgur to share a URL of any screenshot.

    Thread Starter Arno Peck

    (@arnopeck)

    Hello @jamesosborne

    I have done as you suggested, but yes the error still there even with only Site Kit activated.

    Here the screenshot

    Thanks

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for sharing the additional insights, very useful to see the console errors. With the 500 errors that are appearing I suspect there is something at host level blocking access to Google services. There are a couple of things you can check:

    1. As there is a rest_forbidden notice from your comments in a previous topic check with your hosting provider that there are no REST restrictions at host level.
    2. Check that your site is able to communicate with the Site Kit service by asking your hosting provider to perform a cURL command:
      wp eval 'print_r(wp_remote_head("https://sitekit.withgoogle.com"));'

    I’m also curious to know of your full Site Health information. The information you kindly provided doesn’t include your active theme or plugins. If you prefer to share your full Site Health information privately you can do so using this form.

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for sharing your update Site Health information. As nothing stands out from checking the updated Site Health information which you’ve kindy provided please confirm with your hosting provider the below:

    1. That your site is able to communicate with https://sitekit.withgoogle.com. The below cURL command can be used to check this:
      wp eval 'print_r(wp_remote_head("https://sitekit.withgoogle.com"));'
    2. That there are not security rules or Web Application Firewalls that may be blocking REST requests for your site.

    If you have the ability to create a new WordPress site at host level you can also check Site Kit setup on a clean WordPress install without any additional plugins active.

    Thread Starter Arno Peck

    (@arnopeck)

    Hello @jamesosborne

    I asked to the hosting about firewall rules and REST,
    they disabled some WAF rules and they told me that sitekit.withgoogle.com was reachable.
    I have checked the site admin, but te errors where still there…
    So i tried first disable and re-enable the plugin, but still was not working.
    Then I disabled AND uninstall the plugin, and then reinstall it.
    After reinstall, and activated it, it was working fine!

    So, i cannot say exactly what was the problem, but now has gone.
    I hope can help

    ciao ciao

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for sharing the troubleshoot steps you’ve undertaken, great to hear that it’s finally working for you. From my side I also can’t be certain what occurred given the plugin now works as expected. If however you happen to encounter any such problems going forward be sure to get in touch.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Site Kit API Error method:GET datapoint:tag-permission’ is closed to new replies.