# 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.

- Type: PHP
- Runs: Run everywhere
- Category: [Privacy & Cookies](https://wpide.com/library/category/privacy/)
- Requires: WooCommerce
- Tags: woocommerce, tracking, telemetry
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/privacy-woo-no-usage-tracking/

## Code

```php
add_filter( 'pre_option_woocommerce_allow_tracking', function () {
    return 'no';
} );
```

## Notes

This does not affect WooCommerce.com connections such as extension updates.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Keep WooCommerce Usage Tracking Switched Off" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
