Title: Data is not JSON error
Last modified: May 22, 2024

---

# Data is not JSON error

 *  Resolved [catwingz](https://wordpress.org/support/users/catwingz/)
 * (@catwingz)
 * [2 years ago](https://wordpress.org/support/topic/data-is-not-json-error-2/)
 * Hi, I have set up your plugin along with the Google Tag Manager code several 
   time and on this website I have encountered a new problem.
 * After pasting in your code and the code provided by the Tag Manager into the 
   header.php, when I tried to save I got this error message:
 * “Invalid backend response.
   Data is not JSON.”
 * After that the only option was a “save as” and it got caught in a loop. I wasn’t
   able to go back into the file to try to make any changes because it kept kicking
   out the same error over and over. I finally closed the tab to stop it.
 * Are you able to tell me what is going wrong?
 * Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdata-is-not-json-error-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [CookieYes Team](https://wordpress.org/support/users/cookieyesteam/)
 * (@cookieyesteam)
 * [2 years ago](https://wordpress.org/support/topic/data-is-not-json-error-2/#post-17774898)
 * Hi [@catwingz](https://wordpress.org/support/users/catwingz/),
 * Greetings from CookieYes!
 * We haven’t come across this issue before and we suspect that it might be caused
   due to any syntax error in your code.
 * Please try again by re-logging your WordPress admin and share the screenshots
   if the issue persists.
 * Also, please exclude the CookieYes script from the JS optimisation on your site.
 *  Plugin Support [CookieYes Team](https://wordpress.org/support/users/cookieyesteam/)
 * (@cookieyesteam)
 * [2 years ago](https://wordpress.org/support/topic/data-is-not-json-error-2/#post-17785129)
 * Hi [@catwingz](https://wordpress.org/support/users/catwingz/),
 * This thread has been inactive for a bit, so we are going to mark it as resolved
   now. Please feel free to open a new thread or follow-up if you have any further
   questions or still need help.

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

The topic ‘Data is not JSON error’ is closed to new replies.

 * ![](https://ps.w.org/cookie-law-info/assets/icon.svg?rev=3007243)
 * [CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)](https://wordpress.org/plugins/cookie-law-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-law-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-law-info/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-law-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-law-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-law-info/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [CookieYes Team](https://wordpress.org/support/users/cookieyesteam/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/data-is-not-json-error-2/#post-17785129)
 * Status: resolved