• When i try to get site kit working on my website it tells me that my site isn’t ready for it because site kit can’t access the wordpress rest api. Also later when continuing anyways, it gives me another error under the analytics tab saying “Data error in Analytics 4 – The server provided an invalid response”

    How can i fix this?

    extra info: everything is up to date, though because of my infinity free hosting i’m not sure about php and sql versions.

    • This topic was modified 9 months, 3 weeks ago by makerofmoon.
Viewing 1 replies (of 1 total)
  • Hi @makerofmoon,


    The issue you’re facing with Site Kit on your WordPress website could be related to the hosting environment or configuration. Here are some steps you can take to troubleshoot and potentially resolve the problem:

    1. Ensure that your WordPress website allows access to the REST API. You can check this by going to your website’s WordPress dashboard, navigating to “Settings” > “Reading,” and making sure that the option “Discourage search engines from indexing this site” is unchecked.
    2. check the REST API by appending /wp-json/wp/v2/ to your site’s URL (e.g., https://yoursite.com/wp-json/wp/v2/). You should see a list of available endpoints.
    3. Deactivate all plugins and switch to a default WordPress theme (like Twenty Twenty-One). Then, reactivate Site Kit and check if the issue persists. If it doesn’t, there may be a conflict with another plugin or your theme.

    I also read a lot of API issues with your hosting provider here and here.

    if you are still getting error after doing the steps above, I suggest you post your issue on the Plugin support forum: https://www.ads-software.com/support/plugin/google-site-kit/

    Have a great day!

Viewing 1 replies (of 1 total)
  • The topic ‘Site Kit not connecting to REST API’ is closed to new replies.