Archived topic
Analytics tracking across all pages
3 replies · Started by Ted on September 10, 2021
Always inserted Analytics via adding a hook, wp_head and then display Entire Site. Recently though Analytics has started to pull in my own visits to site, on posts and pages and also when using Customize etc. Any idea why this may have changed, and can I exclude it (not by IP?). Thanks!
Hi there,
the Theme has no control over the analytics tracking, it simply adds the script :)
But you can set the Display Rules for your hook: Users to Logged Out.
Alternatively:
If previously it wasn't doing this then i assume the analytics property had some exclusions, which may have been IP ranged.
If IP exclusion is not an option, such as Dynamic IPs, then have a search for:
analytics exclusion bookmarklet
Theres a few tutorials out there on creating a bookmarklet cookie to add to your browser(s) so any analytics will be excluded.
great I'll check that out, thanks!
You're welcome - try the Logged Out user display rule first :)