Title: Google Analytics script duplication
Last modified: October 2, 2017

---

# Google Analytics script duplication

 *  Resolved [sigul77](https://wordpress.org/support/users/sigul77/)
 * (@sigul77)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/google-analytics-script-duplication/)
 * Hi,
 * I am using All in One SEO and I added my Google Analytics code in it. Should 
   I remove it from there to avoid double code and double code?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-analytics-script-duplication%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/google-analytics-script-duplication/#post-9550634)
 * Yes, you should! CAOS inserts an adjusted version of the script, so the local
   analytics.js is loaded, instead of the external one.
 *  Thread Starter [sigul77](https://wordpress.org/support/users/sigul77/)
 * (@sigul77)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/google-analytics-script-duplication/#post-9555405)
 * Hi, I did that, but it happened that CAOS was not working on my website, so I
   ended up deactivating the plugin and reactivating google analytics feature in
   AiO!

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

The topic ‘Google Analytics script duplication’ is closed to new replies.

 * ![](https://ps.w.org/host-analyticsjs-local/assets/icon-256x256.png?rev=3307068)
 * [CAOS | Host Google Analytics Locally](https://wordpress.org/plugins/host-analyticsjs-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-analyticsjs-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-analyticsjs-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-analyticsjs-local/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [sigul77](https://wordpress.org/support/users/sigul77/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/google-analytics-script-duplication/#post-9555405)
 * Status: resolved