Title: <abbr title="Not Safe For Work / Mature content">[NSFW]</abbr> Blocking Jetpack stats
Last modified: February 17, 2021

---

# [NSFW] Blocking Jetpack stats

 *  Resolved [mdknight](https://wordpress.org/support/users/mdknight/)
 * (@mdknight)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/blocking-jetpack-stats/)
 * Hi,
    From Jan 30th 2021 Jetpack Stats have not been recorded. Prior to that it
   was working fine. Once I disable Complianz stats resume working. Do you have 
   any suggestions?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fblocking-jetpack-stats%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/blocking-jetpack-stats/#post-14063525)
 * Hi [@mdknight](https://wordpress.org/support/users/mdknight/),
 * This Complianz update contained an integration with Jetpack. When this integration
   is enabled, the script that is responsible for tracking Jetpack statistics is
   blocked before user consent.
 * As your website is targeted towards visitors from the UK, this also requires 
   consent for anonymized statistics. This is likely the reason for your Jetpack
   Stats dropping.
 * You could disable the integration with Jetpack (Complianz > Integrations) and
   it should function like it used to, but this effectively marks the script as “
   functional”.
 * Hope this clarifies,
    Jarno
 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/blocking-jetpack-stats/#post-14074072)
 * Hi [@mdknight](https://wordpress.org/support/users/mdknight/),
 * This is a specific update for WP.com users; [https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/jetpack-update](https://github.com/Really-Simple-Plugins/complianz-gdpr/tree/jetpack-update)
 * Let me know if this helps,
 * regards Aert
 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/blocking-jetpack-stats/#post-14078455)
 * Hi [@mdknight](https://wordpress.org/support/users/mdknight/),
 * The core issue is that your banner does not have a statistics category. The branch
   Aert posted here will force the statistics category always when JetPack is active.
 * As alternative you can also install this snippet as a mu-plugin:
 *     ```
        function prefix_jetpack_set_statistics_required( $stats_category_required ){
       	    return true;
           }
           add_filter('cmplz_cookie_warning_required_stats', 'prefix_jetpack_set_statistics_required');
       ```
   
 * You should get the JetPack statistics then.
 * The current live version has a condition that forces statistics only if the “
   stats” module is enabled. Apparently there is a configuration possible where 
   the stats module is not enabled, and stats are still tracked. Are you hosted 
   on WordPres.com perhaps?

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

The topic ‘[NSFW] Blocking Jetpack stats’ 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/)

 * 3 replies
 * 4 participants
 * Last reply from: [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/blocking-jetpack-stats/#post-14078455)
 * Status: resolved