Title: Google Analytics code isn&#8217;t being inserted when it should be
Last modified: July 29, 2025

---

# Google Analytics code isn’t being inserted when it should be

 *  Resolved [handwovenbox](https://wordpress.org/support/users/handwovenbox/)
 * (@handwovenbox)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/google-analytics-code-isnt-being-inserted-when-it-should-be/)
 * On my WordPress, I installed this plugin and selected “Disable tracking of Admin-
   level users.” When I tested by visiting my site in another browser, I couldn’t
   find the g-tag code. Further, in Google Analytics setup steps, when I tried the
   option to test my site, Google said it couldn’t find the code.
 * Then, I unchecked “Disable tracking of Admin-level users” in the plugin settings,
   re-checked the site in another browser, and could see the g-tag code. I also 
   used the Test Site option within Google Analytics and it successfully found the
   g-tag code. So it appears that something is wrong with the “Disable tracking 
   of Admin-level users” option.
 * I have WordPress v. 6.8.2 and v. 20250326 of the plugin.

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

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/google-analytics-code-isnt-being-inserted-when-it-should-be/#post-18578194)
 * Glad to help.
 * I just did the following test:
    1. Installed WordPress
    2. Installed/activated GA Google Analytics
    3. Added my tracking code
    4. Enabled the setting to disable for Admin users
    5. Viewed the source code in current browser where I was logged in
    6. Viewed the source code in different (clean) browser where I was NOT logged in
 * The results are that the GA code was not included on the browser where I was 
   logged in (as Admin), and included on the browser where I was not logged in. 
   So normal results.
 * If this is not happening on any given site, there are a few things worth checking:
    1. Running any cache plugin(s)?
    2. Double-check clean browser for testing logged-out state
    3. Any errors in the site’s error log (and/or debug log)
 * If those are all good then most likely there is some interference from some other
   plugin or maybe something the theme is doing. Best advice in that case is to 
   do some basic troubleshooting. I would be glad to provide a free guide if it 
   might be useful for you.
 * Let me know how I can help.
 *  Thread Starter [handwovenbox](https://wordpress.org/support/users/handwovenbox/)
 * (@handwovenbox)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/google-analytics-code-isnt-being-inserted-when-it-should-be/#post-18578371)
 * I appreciate the reply. Thanks for testing. I do have a caching plugin so that
   might be the issue. I’ll do some troubleshooting this weekend.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/google-analytics-code-isnt-being-inserted-when-it-should-be/#post-18578396)
 * You are very welcome. Let me know if I can provide any further information. Have
   a good weekend.
 *  Thread Starter [handwovenbox](https://wordpress.org/support/users/handwovenbox/)
 * (@handwovenbox)
 * [10 months ago](https://wordpress.org/support/topic/google-analytics-code-isnt-being-inserted-when-it-should-be/#post-18599264)
 * I can verify that it’s working as expected, so I was just impatient before. Thanks!

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

The topic ‘Google Analytics code isn’t being inserted when it should be’ is closed
to new replies.

 * ![](https://ps.w.org/ga-google-analytics/assets/icon-256x256.png?rev=2053004)
 * [GA Google Analytics – Connect Google Analytics to WordPress](https://wordpress.org/plugins/ga-google-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ga-google-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ga-google-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/ga-google-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ga-google-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ga-google-analytics/reviews/)

## Tags

 * [admin users](https://wordpress.org/support/topic-tag/admin-users/)

 * 4 replies
 * 2 participants
 * Last reply from: [handwovenbox](https://wordpress.org/support/users/handwovenbox/)
 * Last activity: [10 months ago](https://wordpress.org/support/topic/google-analytics-code-isnt-being-inserted-when-it-should-be/#post-18599264)
 * Status: resolved