Exclude my IPaddress from statistics

[ad_1]

Hi @saskiaherm –

You can exclude a specific IP from your stats using this code snippet:

add_filter(
	'jetpack_stats_excluded_ips',
	function ( $excluded_ips ) {
		$excluded_ips[] = 'youriphere'; // You can use something like 
		return $excluded_ips;
	}
);

You can add the code snippet using a plugin. I recommend Code Snippets.

Please also note that by default Jetpack will not count visits from logged in users, so if you are testing as an admin user, your visits won’t be counted. You can adjust these settings in your WP Admin under “Jetpack > Settings > Traffic > Jetpack Stats”. This screenshot shows the different options:

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer