Title: Google Analytics Issues
Last modified: January 10, 2024

---

# Google Analytics Issues

 *  Resolved [J&D](https://wordpress.org/support/users/wayfarians/)
 * (@wayfarians)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-issues-2/)
 * Hi there
 * Installed Complianz a few days ago for GDPR consent and my Google Analytics traffic
   havs dropped significantly (by two thirds).
 * As you can imagine this is quite a hit in measurable traffic to our website.
 * Just wanted to question whether a drop like this is to be expected due to many
   users just not accepting cookies?
 * Or, is there some way of setting up the plugin so that traffic numbers can be
   maintained somehow?
 * Thanks in advance for any advice.
    -  This topic was modified 2 years, 4 months ago by [J&D](https://wordpress.org/support/users/wayfarians/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-analytics-issues-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-issues-2/#post-17334506)
 * Hi [@wayfarians](https://wordpress.org/support/users/wayfarians/),
 * Your current Complianz configuration indicates that you’re using anonymized statistics,
   so the Analytics script is fired by default (also without clicking “Accept” in
   the banner).
 * If the Analytics script were to be blocked before obtaining consent, that would
   indeed explain the drop i Analytics data. However, as that’s not the case on 
   this site and Analytics is loaded immediately; it would seem unrelated to cookie
   acceptance rates.
 * Perhaps some optimization feature in a caching tool might be related? I.e. Delay
   JS Execution in a plugin like WP Rocket, whereby the Analytics scripts may only
   get loaded after a certain interaction on the page?
 * Kind regards, Jarno
 *  Thread Starter [J&D](https://wordpress.org/support/users/wayfarians/)
 * (@wayfarians)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-issues-2/#post-17334705)
 * Thanks for the reply Jarno,
 * If that were the case wouldn’t the issue have existed before Complianz was installed
   and activated?
 * I do have WP Rocket but have had no issues with the GA numbers in the past.
 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-issues-2/#post-17334725)
 * Hi [@wayfarians](https://wordpress.org/support/users/wayfarians/),
 * That doesn’t necessarily have to be the case, the behavior may have changed now
   that you’re using Complianz.
 * While Analytics is loaded by default, as Statistics consent is also present by
   default in your case: it’s still activated by Complianz. Therefore if Complianz
   is affected by such an optimization it could still change the behavior.
 * The best way to figure out what might be related would be to disable plugins/
   optimizations individually, until the behavior is restored. That’ll tell you 
   which one is most-likely to have been related.
 * Kind regards, Jarno
 *  Thread Starter [J&D](https://wordpress.org/support/users/wayfarians/)
 * (@wayfarians)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-issues-2/#post-17334736)
 * Thanks …. so should I disable WP Rocket and see if that makes a difference?
 * Or is there a setting in WP Rocket that can be applied to allow the script to
   run properly ?
 * Disabling it permanently won’t help my Core Web Vitals after all so I’m hoping
   there’s a solution where both can run.
 * There’s no chance this is a problem on the Google side ?
 * I haven’t made any changes to the analytics code since I installed Complianz (
   not sure if I should have).
    -  This reply was modified 2 years, 4 months ago by [J&D](https://wordpress.org/support/users/wayfarians/).
 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-issues-2/#post-17334932)
 * Hi [@wayfarians](https://wordpress.org/support/users/wayfarians/),
 * The intention is not to permanently disable WP Rocket, but to reduce the number
   of variables which are potentially related to the described behavior. Which greatly
   helps the troubleshooting process as you can narrow down the potential causes
   of the issue.
 * But I haven’t been able to spot any issues with regards to loading Analytics 
   on your site, in the context of this plugin, thus far.
 * Kind regards, Jarno
 *  Thread Starter [J&D](https://wordpress.org/support/users/wayfarians/)
 * (@wayfarians)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-issues-2/#post-17334950)
 * Ok thanks for that.
 * Will disable WP Rocket and come back to you once I’ve seen what the analytics
   numbers look like.
 *  Thread Starter [J&D](https://wordpress.org/support/users/wayfarians/)
 * (@wayfarians)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-issues-2/#post-17345383)
 * Hi Jarno,
 * WP Rocket has been disabled for the past 5 days and our Google Analytics traffic
   has been back to where I would expect it to be for all 5 days.
 * As such, I think it’s fairly safe to say that’s where the issue is.
 * Can you provide any advice on how to setup WP Rocket to allow Complianz to work
   as intended while also not blocking Google Analytics?
 * Many thanks
 * John
 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-issues-2/#post-17350157)
 * Hi [@wayfarians](https://wordpress.org/support/users/wayfarians/),
 * Probably there’s just a single feature in WP Rocket which causes that behavior.
 * I would re-enable WP Rocket after which the issue should return; and then disable
   individual features in that plugin, one-by-one, clearing cache after each one
   you disable; and checking whether disabling that specific feature resolved the
   issue.
 * Once it is resolved after disabling a specific optimization feature in WP Rocket,
   you’ll know that it was likely related to the behavior; and you can leave that
   one disabled while still being able to use the other functionalities of that 
   plugin.
 * Kind regards, Jarno

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

The topic ‘Google Analytics Issues’ 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/)

 * 8 replies
 * 2 participants
 * Last reply from: [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-issues-2/#post-17350157)
 * Status: resolved