Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.59k stars 799 forks source link

Feature Request: Add option to exclude IPs from being counted in the site statistics #39151

Closed StefMattana closed 2 months ago

StefMattana commented 2 months ago

Impacted plugin

Jetpack

What

Add rule to exclude some IPs form Stats count

How

This has been requested in ticket 8664548-zen

I would like to ensure that visitors and/or page views from a specific IP address are not included on the statics. Is there a setting for that? If not I would recommend that be added to your plugin as our internal staff uses our website as an information resource and will make our stats inaccurate.

github-actions[bot] commented 2 months ago

Support References

This comment is automatically generated. Please do not edit it.

jeherve commented 2 months ago

Closing as duplicate of #3570.

As noted there, you can use a filter to achieve that behavior:

https://developer.jetpack.com/hooks/jetpack_stats_excluded_ips/