preview=true - The Pringle
Exclude filter in analytics for WordPress post/page previews
Posted by Brett Pringle on January 29, 2009 in Analytics
I’ve never had to really create an exclude filter within Google analytics before, never had the need to exclude pages/queries from sites i’ve worked on. However i always need to preview my posts, allows me the opportunity to take another scan over for basic errors and to tweak images (perfectionist at heart).
I’ve hard coded my tracking script into the footer of my wordpress theme, so previewing posts is always tracked within the analytics. No point in creating a custom exclude filter for my home and office ADSL line, as the IP address always changes as well. So the other solution would be just to exclude all “preview=true” URI’s from being tracked, to help having to see my previews in my top content pages breakdown in analytics.