Include tracking code in your header file.
This code also keeps from tracking any admin related activity in WordPress. In the example below, pages that include “preview” or “wp-admin” are excluded. As well, two IP addresses are being excluded.
Located near top of header.php.
<?php
global $wp_query;
$page_id = $wp_query->post->ID;
$url= $_SERVER['PHP_SELF'];
$ip= $_SERVER['REMOTE_ADDR'];
$preview = (@$_GET['preview']) [...]