Support Home > Jetpack Stats: Honor Do Not Track (DNT)

Jetpack Stats: Honor Do Not Track (DNT)

Respect your visitors’ privacy by complying with their requests not to be tracked.

Do Not Track (DNT) is a feature in web browsers and websites that asks advertisers and other web software providers to not track individuals’ browsing habits. As a site owner, you can force the Jetpack Stats feature to honor any visitors with DNT enabled and not track their activity (i.e. post and page views) by adding the following code snippet to your site:

1add_filter( 'jetpack_honor_dnt_header_for_stats', '__return_true' );

See our guide for more about adding code snippets to your site, as well as our filter documentation.

We hope to add this as a user-facing setting to the Jetpack Stats in a future release. 

If you’re using Jetpack to enable Google Analytics on your site, you can force Google Analytics to honor visitors with DNT enabled by adding this code snippet:

1add_filter( 'jetpack_honor_dnt_header_for_wga', '__return_true' );

Still need help?

Please contact support. We’re happy to advise.

  • Contact Us

    Need more help? Feel free to contact us.