Title: Monsterinsights duplicate code
Last modified: June 2, 2021

---

# Monsterinsights duplicate code

 *  Resolved [HoH_DK](https://wordpress.org/support/users/hoh_dk/)
 * (@hoh_dk)
 * [5 years ago](https://wordpress.org/support/topic/monsterinsights-duplicate-code/)
 * Hi,
 * I have a problem with duplicate Google Analytics codes on my site because it 
   loads two Monsterinsights scripts even though Complianz recognizes MonsterInsights
   in the wizard.
 * This gives a false low bounce rate as well as page views.
 * Any ideas as to why this is?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmonsterinsights-duplicate-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [5 years ago](https://wordpress.org/support/topic/monsterinsights-duplicate-code/#post-14512089)
 * Hi [@hoh_dk](https://wordpress.org/support/users/hoh_dk/),
 * Does this problem persist when Complianz is deactivated, and only MonsterInsights
   is active? Because we have just tested with only MonsterInsights active, and 
   this exact issue occurred.
 * Our current understanding is that this might be related to the Google account
   that is linked to MonsterInsights, and that it might attempt to place the other
   Analytics code as well.
 * Kind regards,
    Jarno
 *  Thread Starter [HoH_DK](https://wordpress.org/support/users/hoh_dk/)
 * (@hoh_dk)
 * [5 years ago](https://wordpress.org/support/topic/monsterinsights-duplicate-code/#post-14515181)
 * Actually, it does not persist with Complianz deactivated. The big difference 
   with Complianz deactivated is that the UA scripts are not divided so much. Meaning
   the first UA script is on line 90 and the second on line 100.
 * With Complianz activated the second script is on line 700, so I guess it makes
   it count the UA tag twice resulting in a low bounce rate, etc.
 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [5 years ago](https://wordpress.org/support/topic/monsterinsights-duplicate-code/#post-14519735)
 * Hi [@hoh_dk](https://wordpress.org/support/users/hoh_dk/),
 * We will have to look closer into MonsterInsights and our integration, to find
   out what exactly causes this.
 * I hope to be able to provide more information soon.
 * Kind regards,
    Jarno
 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/monsterinsights-duplicate-code/#post-14533455)
 * Hi [@hoh_dk](https://wordpress.org/support/users/hoh_dk/),
 * [https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/monsterinsights-fix](https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/monsterinsights-fix)
 * Could you try this one? Please deactivate the former version before installing,
   settings will remain.
 * regards Aert
 *  Thread Starter [HoH_DK](https://wordpress.org/support/users/hoh_dk/)
 * (@hoh_dk)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/monsterinsights-duplicate-code/#post-14536045)
 * Hi Aert,
 * I have installed the new version, and the bounce rate immediately goes up. So
   I guess it works. 😉 Is this a future update, and will I have to go back to the“
   old” plugin again?
 * Thanks.
 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/monsterinsights-duplicate-code/#post-14536339)
 * Hi [@hoh_dk](https://wordpress.org/support/users/hoh_dk/),
 * Glad to hear that worked. This fix will be included in the next update, so these
   changes will remain after updating.
 * I’ll mark this as resolved for now, let us know if we can assist further.
 * Kind regards,
    Jarno

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

The topic ‘Monsterinsights duplicate code’ is closed to new replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

## Tags

 * [bounce rate](https://wordpress.org/support/topic-tag/bounce-rate/)
 * [MonsterInsights](https://wordpress.org/support/topic-tag/monsterinsights/)

 * 6 replies
 * 3 participants
 * Last reply from: [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * Last activity: [4 years, 12 months ago](https://wordpress.org/support/topic/monsterinsights-duplicate-code/#post-14536339)
 * Status: resolved