[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:
