Title: Google Site Kit API Error
Last modified: August 26, 2024

---

# Google Site Kit API Error

 *  Resolved [wmaas](https://wordpress.org/support/users/wmaas/)
 * (@wmaas)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/google-site-kit-api-error-2/)
 * Hello,
 * I connected the Site Kit to Google Analytics and everything goes right but the“
   Top Content over the last 28 days” shows no data and remains as this:
 * ![](https://i0.wp.com/i.ibb.co/gVPww6b/topcontent.png?ssl=1)
 * I review the console looking for errors and found this message:
   _`Google Site
   Kit API Error method:GET datapoint:report type:modules identifier:analytics-4
   error:"The response is not a valid JSON response."(anonymous)@googlesitekit-api-.......`_
 * **All the rest of the dashboard and graphics works great. **
 * I already reset connections, review it with health check activated, deactivated
   all the plugins, reinstall software, etc. etc. and nothing fixes until now.
 * Thanks in advance for all your help.

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/google-site-kit-api-error-2/#post-17977378)
 * Hi @wmaas, thanks for getting in touch and for sharing the information you have.
   To help look into this further, please can you share the following:
    1. Your [Site Health information](https://i.imgur.com/Rtkmsba.png). You can [use this form](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/)
       to share privately if preferred. 
    2. Can you confirm that you don’t encounter any issues setting up Site Kit from
       [this disposable WordPress site](https://wordpress.org/plugins/google-site-kit/)?
    3. Do you see any warnings or errors when checking your** **Site Health status (
       [_Tools > Site Health > Status_](https://i.imgur.com/wSRWwon.png)), which differs
       from your Site Health information requested above? Such errors may include REST
       endpoint references.
    4. Do you encounter the same issue when you [use the Health Check & Troubleshooting plugin](https://sitekit.withgoogle.com/documentation/troubleshooting/using-troubleshooting-mode/)?
 * Let me know if you have any questions on the above information.
 *  Thread Starter [wmaas](https://wordpress.org/support/users/wmaas/)
 * (@wmaas)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/google-site-kit-api-error-2/#post-17978641)
 * Hello [@adamdunnage](https://wordpress.org/support/users/adamdunnage/), thanks
   a lot for your help.
    1. Done, I share the information using the form.
    2. Ok, I installed the plugin using this disposable WordPress site and no issues
       to installe it but the error are still there.
    3. No, all the information remains the same.
    4. Yes, the issue is the same.
 * Kind Regards.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/google-site-kit-api-error-2/#post-17979686)
 * [@wmaas](https://wordpress.org/support/users/wmaas/) Thanks for sharing the information.
   Could I please ask you to try performing a [Site Kit reset](https://sitekit.withgoogle.com/documentation/using-site-kit/reset/).
   Once reset, set up Site Kit once more and connect the required modules. After
   doing this do you face the same issue on the dashboard?
 * Please note that resetting Site Kit disconnects all users and removes all Site
   Kit settings, Dashboard Sharing settings and data within WordPress. After resetting,
   other administrators will need to go through the setup process again. Any users
   that have access to a view only dashboard will lose access to them.
 *  Thread Starter [wmaas](https://wordpress.org/support/users/wmaas/)
 * (@wmaas)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/google-site-kit-api-error-2/#post-17983688)
 * [@adamdunnage](https://wordpress.org/support/users/adamdunnage/) thanks again
   for your help, I made again the Site Kit reset but the trouble remains.
 * Actually I found and interesting situation: It works fine when “Last 90 days”
   is selected in Date Range. If any other date range is selected does not load 
   the data.
 * Any thoughts?
 * Regards
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/google-site-kit-api-error-2/#post-17984619)
 * [@wmaas](https://wordpress.org/support/users/wmaas/) That’s interesting. Do you
   encounter the same with the “Last 28 days” data not loading if you try connecting
   a different Analytics property?
 * Could you also try going to [this URL](https://tastewp.com/create/NMS/8.0/6.2.2/google-site-kit/twentytwenty?ni=true&redirect=admin.php%3Fpage%3Dgooglesitekit-splash)
   which will create a temporary WordPress test site for you. Please try setting
   up Site Kit on this site connecting the same Analytics property and see if you
   see the same behaviour.
 * Let me know how you get on with the two scenarios above.
 *  Thread Starter [wmaas](https://wordpress.org/support/users/wmaas/)
 * (@wmaas)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/google-site-kit-api-error-2/#post-17990649)
 * Hello [@adamdunnage](https://wordpress.org/support/users/adamdunnage/). I am 
   not sure if something happens in the weekend with Google Analytics data, a powerful
   wizard touched the APIs or something was updated in the Plugin, but today’s morning
   everything was working like a charm.
 * I’ll be monitoring during the week how its working and if something goes wrong
   I’ll drop a line. Maybe it was just a glitch.
 * Kind Regards
 * –William
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/google-site-kit-api-error-2/#post-17991490)
 * Thanks for the update [@wmaas](https://wordpress.org/support/users/wmaas/), much
   appreciated. Please do keep an eye on it. We can keep this support topic open
   in the meantime, while checking back in with you later in the week or next.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/google-site-kit-api-error-2/#post-18005611)
 * [@wmaas](https://wordpress.org/support/users/wmaas/) I just wanted to check back
   with you to ensure everything is working with Site Kit on your site?
 *  Thread Starter [wmaas](https://wordpress.org/support/users/wmaas/)
 * (@wmaas)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/google-site-kit-api-error-2/#post-18006438)
 * Hello [@adamdunnage](https://wordpress.org/support/users/adamdunnage/) [@jamesosborne](https://wordpress.org/support/users/jamesosborne/)
 * So far, so good. Everything is working nice and smooth. Actually we updated Site
   Kit to last version without issues.
 * Thanks a lot. I think this issue is solved.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/google-site-kit-api-error-2/#post-18007454)
 * [@wmaas](https://wordpress.org/support/users/wmaas/) Delighted to hear that! 
   Thanks for letting us know and glad we could help you.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Google Site Kit API Error’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [json response](https://wordpress.org/support/topic-tag/json-response/)

 * 10 replies
 * 3 participants
 * Last reply from: [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/google-site-kit-api-error-2/#post-18007454)
 * Status: resolved