# Respect Do Not Track in Jetpack Stats

> Tells Jetpack Stats not to count visitors whose browser sends the Do Not Track signal, a simple privacy step for sites that want lighter tracking.

- Type: PHP
- Runs: Run everywhere
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: jetpack, stats, privacy
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/jetpack-stats-honor-dnt/

## Code

```php
add_filter( 'jetpack_honor_dnt_header_for_stats', '__return_true' );
```

## Notes

Visitor numbers in Jetpack Stats may drop slightly afterwards.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Respect Do Not Track in Jetpack Stats" 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/
