How to Stop Tracking in WP Statistics with PHP code?

Sometimes you need to enable the Anonymize IP Addresses with PHP code for GDPR. Here is an example to do that. add_action(‘init’, function (){ global $WP_Statistics; $WP_Statistics->update_option( ‘anonymize_ips’, ‘1’ ); });

WP Statistics and GDPR

Many users asked about WP Statistics compliance with GDPR. We have good news! In V12.4.0, the WP Statistics plugin has complied with GDPR. A (Brief) Introduction to GDPR GDPR is a regulation that aims to protect the privacy of EU (European Union) citizens. Among other things, it provides users with more control over the personal […]