Keep WooCommerce Usage Tracking Switched Off
Forces WooCommerce's optional usage tracking off, so no store data is sent to WooCommerce even if someone accepts the prompt by mistake.
Opens WPIDE on
Code
add_filter( 'pre_option_woocommerce_allow_tracking', function () {
return 'no';
} );
Notes
This does not affect WooCommerce.com connections such as extension updates.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.