Title: problem. causeing json /api errors
Last modified: September 6, 2021

---

# problem. causeing json /api errors

 *  [pixelmorph](https://wordpress.org/support/users/pixelmorph/)
 * (@pixelmorph)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/problem-causeing-json-api-errors/)
 * good morning I’m getting this message in my redirect plugin after installing 
   the tag manager…
    I’ve isolated the issue. ( if I deactivate tag manger it goes
   away). is there any workaround or fix you can suggest… ?
 *     ```
       Plugin: 5.1.3 4.2
       WordPress: 5.8 (single)
       PHP: 7.4.23
       Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
       JavaScript: https://www.staging7.jbhunter.edu.au/wp-content/plugins/redirection/redirection.js?ver=5.1.3-81f455fc2a8faec560fb955b29f9a717
       REST API: https://www.staging7.jbhunter.edu.au/wp-json/
       Query: ?page=redirection.php&sub=options
   
       Error: Unexpected token < in JSON at position 2 (SyntaxError)
       Raw: 
   
       <!-- Google Tag Manager (noscript) -->{"settings":{"support":false,"token":"8ce54bd6d745ba0f8bda4efb85d03dda","monitor_post":0,"monitor_types":[],"associated_redirect":"","auto_target":"","expire_redirect":7,"expire_404":1,"modules":{"2":{"location":""}},"newsletter":false,"redirect_cache":1,"ip_logging":1,"last_group_id":1,"rest_api":0,"https":false,"database":"4.2","flag_query":"exact","flag_case":false,"flag_trailing":false,"flag_regex":false,"headers":[],"relocate":"","preferred_domain":"","aliases":[],"log_external":false,"log_header":false,"track_hits":true,"permalinks":[],"cache_key":0,"plugin_update":"prompt","update_notice":"5.1","location":""},"groups":[{"label":"WordPress","value":[{"label":"Redirections","value":1},{"label":"Modified Posts","value":2}]}],"installed":"\/home\/customer\/www\/staging7.jbhunter.edu.au\/public_html\/","canDelete":true,"post_types":{"post":"Posts","page":"Pages","portfolio_page":"Portfolio","product":"Products","trash":"Trash"}}
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-causeing-json-api-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/problem-causeing-json-api-errors/#post-14852339)
 * Hi,
 * I can only recognize this line coming from GTM4WP:
 * `<!-- Google Tag Manager (noscript) -->`
 * All other JSON values are independent of this plugin.
    What is the current value
   of the code placement in GTM4WP plugin settings?

Viewing 1 replies (of 1 total)

The topic ‘problem. causeing json /api errors’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/problem-causeing-json-api-errors/#post-14852339)
 * Status: not resolved