Title: Google Analytics &#8211; Code not added?
Last modified: May 29, 2018

---

# Google Analytics – Code not added?

 *  Resolved [Greg](https://wordpress.org/support/users/gfin/)
 * (@gfin)
 * [8 years ago](https://wordpress.org/support/topic/google-analytics-code-not-added/)
 * Hi guys,
 * Recently installed on a few websites, but the Google Analytics script doesn’t
   seem to be added to pages when Cookies are accepted – I’ve checked the page source
   on a few devices, including the page source for your own website – any ideas 
   if it’s actually tracking still?
 * Thanks,
    Greg

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

 *  [caecilia79](https://wordpress.org/support/users/caecilia79/)
 * (@caecilia79)
 * [8 years ago](https://wordpress.org/support/topic/google-analytics-code-not-added/#post-10335357)
 * Same issue here…
 *  [MA](https://wordpress.org/support/users/gasparnemes/)
 * (@gasparnemes)
 * [8 years ago](https://wordpress.org/support/topic/google-analytics-code-not-added/#post-10335402)
 * Hi there,
 * Thanks for your comments. The scripts defined in the plugin settings will be 
   added using javascript, this means the scripts are not visible in the source 
   code of your website. You can find them if you open the developer tools and check
   the source code in there.
 * Please open your Google Analytics account and check the real-time section to 
   see if it works or not.
 * I hope this helps.
 *  Thread Starter [Greg](https://wordpress.org/support/users/gfin/)
 * (@gfin)
 * [8 years ago](https://wordpress.org/support/topic/google-analytics-code-not-added/#post-10335445)
 * Hi Gaspar,
 * Ah, that makes sense, thanks for the help and your quick reply, I’ve installed
   Google Tag Assistant in Chrome and can see it’s loading correctly.
 * Many thanks
 *  [caecilia79](https://wordpress.org/support/users/caecilia79/)
 * (@caecilia79)
 * [8 years ago](https://wordpress.org/support/topic/google-analytics-code-not-added/#post-10335495)
 * Thanks 🙂
 *  [nickpsal](https://wordpress.org/support/users/nickpsal/)
 * (@nickpsal)
 * [8 years ago](https://wordpress.org/support/topic/google-analytics-code-not-added/#post-10335834)
 * I have installed plugin and its working fine but when the cookies are disabled
   google analytics in disabled. Wheen i enable it and disable cookies again the
   google analytics stays enabled in cookies. How can i disable google analytics
   when someone enable and then disable cookies???

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

The topic ‘Google Analytics – Code not added?’ is closed to new replies.

 * ![](https://ps.w.org/gdpr-cookie-compliance/assets/icon-256x256.png?rev=2376316)
 * [GDPR Cookie Compliance - Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law](https://wordpress.org/plugins/gdpr-cookie-compliance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr-cookie-compliance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr-cookie-compliance/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr-cookie-compliance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr-cookie-compliance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr-cookie-compliance/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [nickpsal](https://wordpress.org/support/users/nickpsal/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/google-analytics-code-not-added/#post-10335834)
 * Status: resolved