<?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>Nathan Jackson &#187; Analytics</title>
	<atom:link href="http://www.njackson.co.uk/category/marketing/analytics-marketing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.njackson.co.uk</link>
	<description>Website Analyst / Developer Yorkshire</description>
	<lastBuildDate>Tue, 29 Jun 2010 13:10:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Tracking events with Google Analytics</title>
		<link>http://www.njackson.co.uk/2009/02/tracking-hyperlink-presses-with-google-analytics/</link>
		<comments>http://www.njackson.co.uk/2009/02/tracking-hyperlink-presses-with-google-analytics/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 13:51:56 +0000</pubDate>
		<dc:creator>Nathan</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google analytics]]></category>

		<guid isPermaLink="false">http://www.njackson.co.uk/?p=75</guid>
		<description><![CDATA[So, we had some hyperlinked images on one of our websites, each leading to the same page, but with a different $_GET which identifies which button this was. As far as my knowledge goes, that would have made the page duplicate (in google robot&#8217;s eyes), which then would have a minor impact on the organic [...]]]></description>
			<content:encoded><![CDATA[<p>So, we had some hyperlinked images on one of our websites, each leading to the same page, but with a different $_GET which identifies which button this was. As far as my knowledge goes, that would have made the page duplicate (in google robot&#8217;s eyes), which then would have a minor impact on the organic page rankings.</p>
<p>And because organic page ranking is quite important, I thought I&#8217;d do some digging regarding to tracking hyperlinks with Google Analytics. I found lots of information regarding to tracking form buttons, flash files and allsorts but most were crowded with extra information.</p>
<p>The line of code that tracks this event is quite simple, and all you need to do is add it into your &lt;a&gt; or your &lt;input type=&#8217;button&#8217;&gt;</p>
<p>onClick=&#8221;pageTracker._trackEvent(<strong>category</strong>, <strong>action</strong>, <strong>optional_label</strong>, <strong>optional_value</strong>)&#8221;</p>
<p><strong>Category</strong> in this case was the general name for the event which happened to be &#8216;Buttons&#8217;.<br />
<strong>Action</strong> in this case was what they&#8217;d done, so I named it &#8216;Click&#8217;.<br />
<strong>Optional_Label</strong> in this case wa a numerical indicator dependant on which button was clicked.<br />
<strong>Optional Value</strong> I didn&#8217;t acually use, as I didn&#8217;t see any point in assigning the button a value, as each was equal as each other.</p>
<p>It should look something like this:<br />
<code>&lt;a onclick="”pageTracker._trackEvent('buttons'," href="/page.htm"&gt;Link text here&lt;/a&gt;</code></p>
<p>Sorted! Just log into your Google Analytics account, go to the website report -&gt; Content -&gt; Event Tracking and within a few days you&#8217;ll see some numbers <img src='http://www.njackson.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Need a hand? Just post a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.njackson.co.uk/2009/02/tracking-hyperlink-presses-with-google-analytics/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for ( lolnathanlol www.njackson.co.uk/category/marketing/analytics-marketing/feed/ ) in 0.04180 seconds, on Jul 29th, 2010 at 11:31 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Jul 29th, 2010 at 12:31 pm UTC -->