<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Pringle &#187; exclude filter</title>
	<atom:link href="http://brettpringle.com/index.php/tag/exclude-filter/feed/" rel="self" type="application/rss+xml" />
	<link>http://brettpringle.com</link>
	<description>The parts between search, social and marketing</description>
	<lastBuildDate>Mon, 23 Jan 2012 12:20:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Exclude filter in analytics for WordPress post/page previews</title>
		<link>http://brettpringle.com/analytics/exclude-filter-in-analytics-for-wordpress-post-page-previews/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=exclude-filter-in-analytics-for-wordpress-post-page-previews</link>
		<comments>http://brettpringle.com/analytics/exclude-filter-in-analytics-for-wordpress-post-page-previews/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 16:52:36 +0000</pubDate>
		<dc:creator>Brett Pringle</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[exclude filter]]></category>
		<category><![CDATA[preview=true]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://brettpringle.com/?p=98</guid>
		<description><![CDATA[<p>I&#8217;ve never had to really create an exclude filter within Google analytics before, never had the need to exclude pages/queries from sites i&#8217;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&#8217;ve hard coded [...]</p><p><a href="http://brettpringle.com/analytics/exclude-filter-in-analytics-for-wordpress-post-page-previews/">Exclude filter in analytics for WordPress post/page previews</a> via <a href="http://brettpringle.com">The Pringle</a></p>

<h3>Related Posts</h3>
<ol>
		<li><a href="http://brettpringle.com/analytics/google-analytics-creating-multiple-goals/" rel="bookmark">Google Analytics &#8211; creating multiple goals</a><!-- (2)--></li>
		<li><a href="http://brettpringle.com/analytics/subdomain-tracking-using-custom-analytics-tracking-script-filters/" rel="bookmark">Google Analytics subdomain tracking, custom script &#038; filters</a><!-- (2)--></li>
		<li><a href="http://brettpringle.com/analytics/what-is-bounce-rate/" rel="bookmark">What is bounce rate? Answer is not always call to actions</a><!-- (2)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">I&#8217;ve never had to really create an exclude filter within Google analytics before, never had the need to exclude pages/queries from sites i&#8217;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).</p>
<p style="text-align: left;">I&#8217;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 &#8220;<strong>preview=true</strong>&#8221; URI&#8217;s from being tracked, to help having to see my previews in my top content pages breakdown in analytics.</p>
<p style="text-align: left;">It&#8217;s an extremely easy task to do. Simply sign in to your Google Analytics account and edit your blog analytics profile and select the option to &#8220;<strong>add filter</strong>&#8220;. You will need to use the <strong>custom filter</strong> option as seen below:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-99" title="Add Filter - Select Custom Filter" src="http://brettpringle.com/wp-content/uploads/2009/01/add-filter-selection-1.png" alt="Add Filter - Select Custom Filter" width="555" height="296" /></p>
<p style="text-align: left;">Once you&#8217;re done, you need to select the type of filter you are wanting to create, we are looking to create an exclude filter, so make sure you have the &#8220;exclude&#8221; option checked. Now you will need to change the &#8220;<strong>filter field</strong>&#8220;, which defaults to &#8220;<strong>visitor geographical domain</strong>&#8220;, to &#8220;<strong>Request URI</strong>&#8221; towards the top of the dropdown (dropup? <img src='http://brettpringle.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ). URI meaning everything after the domain name, very different to URL.</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-100" title="Custom Filter Details - Exclude Option and Request URI" src="http://brettpringle.com/wp-content/uploads/2009/01/add-filter-custom-filter-selection.png" alt="Custom Filter Details - Exclude Option and Request URI" width="593" height="397" /></p>
<p style="text-align: left;">Next, you&#8217;ll need to add your pattern. As this works in a similar manner to the head match option when creating goals in analytics, you will only need to add the common &#8220;pattern&#8221; that will appear in URI&#8217;s that you do not wish to track. Simply add your &#8220;preview=true&#8221; for the filter pattern, don&#8217;t forget to name your custom filter, then save. You are all done.</p>
<p style="text-align: center;"><img class="size-full wp-image-101 alignnone" title="Adding your filter pattern to your exclude filter" src="http://brettpringle.com/wp-content/uploads/2009/01/add-filter-request-uri-previewtrue.png" alt="Adding your filter pattern to your exclude filter" width="590" height="310" /></p>
<p style="text-align: left;">
<p style="text-align: left;">And you&#8217;re done! Remember this will only affect any new data tracked going forward and does take some time before you will see updated data within your analytics profile. As a side note, be very careful that the &#8220;<strong>preview=true</strong>&#8221; function is not used somewhere else within wordpress legitimately, as you may very well want to track that data.</p>
<p style="text-align: left;">Sometimes it&#8217;s best to tweak and customise yourself, than having to really on plugins to easily solve a need/problem. Hope this little tid bit of info may help some of you.</p>


<h3>Related Posts</h3>
<ol>
		<li><a href="http://brettpringle.com/analytics/google-analytics-creating-multiple-goals/" rel="bookmark">Google Analytics &#8211; creating multiple goals</a><!-- (2)--></li>
		<li><a href="http://brettpringle.com/analytics/subdomain-tracking-using-custom-analytics-tracking-script-filters/" rel="bookmark">Google Analytics subdomain tracking, custom script &#038; filters</a><!-- (2)--></li>
		<li><a href="http://brettpringle.com/analytics/what-is-bounce-rate/" rel="bookmark">What is bounce rate? Answer is not always call to actions</a><!-- (2)--></li>
	</ol>
<p><a href="http://brettpringle.com/analytics/exclude-filter-in-analytics-for-wordpress-post-page-previews/">Exclude filter in analytics for WordPress post/page previews</a> via <a href="http://brettpringle.com">The Pringle</a></p>]]></content:encoded>
			<wfw:commentRss>http://brettpringle.com/analytics/exclude-filter-in-analytics-for-wordpress-post-page-previews/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

