Title: GTM Script Blocking Error
Last modified: July 15, 2019

---

# GTM Script Blocking Error

 *  [semperaye](https://wordpress.org/support/users/semperaye/)
 * (@semperaye)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/gtm-script-blocking-error/)
 * Hello,
 * I’ trying to add:
 * `<?php if ( function_exists( 'gtm4wp_the_gtm_tag' ) ) { gtm4wp_the_gtm_tag();}?
   >`
 * to the body section of the script blocking, but it must not have accepted the
   code as is because the code is not there anymore…just white space.
 * I’m using GTM for my google analytics code so I needed to add that to the script
   blocking. Soooo……
 * Is there something I’m doing wrong with this code when I place it into the script
   blocking? I’m really new at this.
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Thread Starter [semperaye](https://wordpress.org/support/users/semperaye/)
 * (@semperaye)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/gtm-script-blocking-error/#post-11734147)
 * .

Viewing 1 replies (of 1 total)

The topic ‘GTM Script Blocking Error’ is closed to new replies.

 * ![](https://ps.w.org/cookie-notice/assets/icon-256x256.png?rev=3549327)
 * [Compliance by Hu-manity.co](https://wordpress.org/plugins/cookie-notice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-notice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-notice/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-notice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-notice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-notice/reviews/)

## Tags

 * [body](https://wordpress.org/support/topic-tag/body/)
 * [gtm](https://wordpress.org/support/topic-tag/gtm/)
 * [script blocking](https://wordpress.org/support/topic-tag/script-blocking/)

 * 1 reply
 * 1 participant
 * Last reply from: [semperaye](https://wordpress.org/support/users/semperaye/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/gtm-script-blocking-error/#post-11734147)
 * Status: not resolved