Option in WordPress plugin to stop tracking users that are logged in (code included!)
At this moment the plugin tracks everyone. Even if you are logged in, that doesn't make sense to track your own visits.
Simple solution is to change this:
function add_mouseflow_script()
{
echo get_option('mouseflow_script');
}
to
function add_mouseflow_script()
{
if ( ! current_user_can('edit_posts') || ! is_user_logged_in() ) {
echo get_option('mouseflow_script');
}
}
3
votes
Richard van Denderen
shared this idea
Hi Richard,
This sounds like a great idea. I’ll definitely leave pass this along to our developers for inclusion in our next update of the WP plugin.
In the meantime, you could use our ‘Exclude IP’-feature, to make sure your own or your teams visits aren’t recorded. You can read more on that here:
https://mouseflow.zendesk.com/entries/22083832-Can-I-exclude-my-own-IP-address-