filter

jetpack_stats_excluded_ips

Allow excluding specific IP addresses from being tracked in Stats.Note: for this to work well, visitors’ IP addresses must: be stored and returned properly in IP address headers; not be impacted by any caching setup on your site.

Parameters

$excluded_ips
array

An array of IP address strings to exclude from tracking.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.

Notes

You can use this filter to exclude specific IP addresses from being tracked as stats, like so:
add_filter(
	'jetpack_stats_excluded_ips',
	function ( $excluded_ips ) {
		$excluded_ips[] = 'youriphere'; // You can use something like https://www.whatsmyip.org/
		return $excluded_ips;
	}
);