Title: Google site kit injecting code
Last modified: September 28, 2022

---

# Google site kit injecting code

 *  Resolved [astoller99](https://wordpress.org/support/users/astoller99/)
 * (@astoller99)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/google-site-kit-injecting-code/)
 * I have a code snippet being injected into my site by sitekit which seems to restricting
   Googel analytics.
    do yo have any idea why this is happening and how to stop 
   it? thanks Astoller
 * <link rel=”profile” href=”[https://gmpg.org/xfn/11&#8243](https://gmpg.org/xfn/11&#8243);/
   >
    <!– Google Analytics opt-out snippet added by Site Kit –> <script> window[“
   ga-disable-UA-xxxxxxx-2”] = true; </script> <script> window[“ga-disable-G-yyyyyyy”]
   = true; </script> <!– End Google Analytics opt-out snippet added by Site Kit –
   >

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

 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/google-site-kit-injecting-code/#post-16050758)
 * Hi [@astoller99](https://wordpress.org/support/users/astoller99/),
 * Thanks for reaching out. The snippet you provided is only visible for logged 
   in administrators. It’s a reflection of the current Google Analytics settings
   within Site Kit, whether to count logged in users or not for each visit to your
   site.
 * You’ll find this settings under “_Site Kit > Settings > Connected Services > 
   Analytics > Edit_“, from within your WordPress dashboard.
 * ![](https://i0.wp.com/i.imgur.com/FebgBDg.png?ssl=1)
 * Let me know if you have any questions with the above.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/google-site-kit-injecting-code/#post-16072647)
 * As we didn’t receive a response I’ll mark this as resolved. Feel free to open
   a [new support topic](https://wordpress.org/support/plugin/google-site-kit/#new-post)
   if you continue to encounter issues, or reopen this topic and we’d be happy to
   assist.

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

The topic ‘Google site kit injecting code’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/google-site-kit-injecting-code/#post-16072647)
 * Status: resolved