Title: Gtag code/script not added
Last modified: September 10, 2021

---

# Gtag code/script not added

 *  Resolved [izaakbeer](https://wordpress.org/support/users/izaakbeer/)
 * (@izaakbeer)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/gtag-code-script-not-added/)
 * I am trying to activate Google Tag Manager to start tracking user actions on 
   my website. I am using Oxygen Builder.
 * I have added my Google Analytics Measurement code (G-XXXXXX), which works.
 * Now, I want to add the two Google Tag Manager scripts using the “tracking tab”.
   I have added my script in the [head] and [body], but it does not appear to work.
   When checking the website source code, the Gtag script is never added.
 * I am not logged in (using incognito). I do not use the cookiebanner feature (
   I use Complianz instead). It is also not caching (not enabled on site, browser
   cache cleared). So what could this be?
 * The website is still set to no-index, which is why i really can not publicly 
   share any URL. Could the no-index cause this? Neither the <head> or <body> scripts
   shows up.
 * Thanks in advance!

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

 *  Thread Starter [izaakbeer](https://wordpress.org/support/users/izaakbeer/)
 * (@izaakbeer)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/gtag-code-script-not-added/#post-14860204)
 * Hmm… After resubmitting the changes (reclicking save), the script appears to 
   show up (both in head and footer) – albeit without the <!– Google Tag Manager–
   > comments
 * However, when trying the “Preview” in Google Tag Manager (to test the connection
   and if events fire), GTag does not connect to the site. Not sure why it doesn’t
   connect? (I am not logged in and all cookies have been accepted)
    -  This reply was modified 4 years, 8 months ago by [izaakbeer](https://wordpress.org/support/users/izaakbeer/).
 *  Thread Starter [izaakbeer](https://wordpress.org/support/users/izaakbeer/)
 * (@izaakbeer)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/gtag-code-script-not-added/#post-14860228)
 * I’m such a noob…
 * **RESOLVED**
    Brave browser shields block various end points of Google Tag Manager.
   Basically, you can’t track whoever uses Brave (including me). Its working just
   fine!
 * — CLOSED
 *  Plugin Author [Benjamin Denis](https://wordpress.org/support/users/rainbowgeek/)
 * (@rainbowgeek)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/gtag-code-script-not-added/#post-14865115)
 * Thank you for this update!

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

The topic ‘Gtag code/script not added’ is closed to new replies.

 * ![](https://ps.w.org/wp-seopress/assets/icon-128x128.gif?rev=3158903)
 * [SEOPress - AI SEO Plugin & On-site SEO](https://wordpress.org/plugins/wp-seopress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-seopress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-seopress/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-seopress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-seopress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-seopress/reviews/)

## Tags

 * [gtag](https://wordpress.org/support/topic-tag/gtag/)
 * [script](https://wordpress.org/support/topic-tag/script/)
 * [tracking](https://wordpress.org/support/topic-tag/tracking/)

 * 3 replies
 * 2 participants
 * Last reply from: [Benjamin Denis](https://wordpress.org/support/users/rainbowgeek/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/gtag-code-script-not-added/#post-14865115)
 * Status: resolved