Title: Code not showing in view-source
Last modified: November 29, 2020

---

# Code not showing in view-source

 *  Resolved [harman79](https://wordpress.org/support/users/harman79/)
 * (@harman79)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/code-not-showing-in-view-source/)
 * Hi,
 * I have noticed something peculiar. The g-tag script is nowhere to be found in
   the source code of my page, unless I am logged in my wp-admin in which case it
   is displayd in the footer as requested in the options. However, tracking seems
   to be working as I have tested it in the analytics page; when I visit the page
   from various devices incognito it adds up the visitors OK.
 * Is this normal? I am also using wp-rocket google analytics caching add on, maybe
   it is related to that?
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcode-not-showing-in-view-source%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/code-not-showing-in-view-source/#post-13722789)
 * I’m not sure what might be happening, but here are a few things to check:
    - Plugin setting “Admin Users” should be unchecked/disabled
    - Clear or reset the cache for your site
 * Hopefully that helps, let me know how it goes or if any more questions, etc.
 *  [alimaskun](https://wordpress.org/support/users/alimaskun/)
 * (@alimaskun)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/code-not-showing-in-view-source/#post-13756806)
 * Code
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/code-not-showing-in-view-source/#post-13756831)
 * Hi [@harman79](https://wordpress.org/support/users/harman79/), just wanted to
   follow up with this. It’s been a few days I hope the issue is resolved? Or if
   there is anything I can do to help, please let me know. Thank you.
 * [@alimaskun](https://wordpress.org/support/users/alimaskun/) How can I help?
 *  [alimaskun](https://wordpress.org/support/users/alimaskun/)
 * (@alimaskun)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/code-not-showing-in-view-source/#post-13757308)
 * Data
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/code-not-showing-in-view-source/#post-13757347)
 * I don’t understand, should I notify the forum moderators? Let me know how I can
   help.
 *  Thread Starter [harman79](https://wordpress.org/support/users/harman79/)
 * (@harman79)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/code-not-showing-in-view-source/#post-13758929)
 * Hi Jeff,
 * your plugin works fine. I asked the guys at WP Rocket and they explained to me
   that this is normal. Quoting their answer for future reference.
 * > Yes, it’s normal, because the add-on causes local versions of the files to 
   > be created and used instead; see this article for more info about how it works:
   > [https://docs.wp-rocket.me/article/1103-google-tracking-add-on](https://docs.wp-rocket.me/article/1103-google-tracking-add-on)
 * My analytics functionality seems OK, since I get regular tracking every day. 
   Thanks for the follow up.
 * Cheers
 * PS. No idea what [@alimaskun](https://wordpress.org/support/users/alimaskun/)
   is talking about.
    -  This reply was modified 5 years, 6 months ago by [harman79](https://wordpress.org/support/users/harman79/).
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/code-not-showing-in-view-source/#post-13761260)
 * Thanks for the follow-up, [@harman79](https://wordpress.org/support/users/harman79/).
   Yes that all makes sense then. Glad you got it sorted. Cheers

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

The topic ‘Code not showing in view-source’ 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

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

 * 7 replies
 * 3 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/code-not-showing-in-view-source/#post-13761260)
 * Status: resolved