<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Google Analytics Hack: Track Outbound Links In 2 Easy Steps</title>
	<atom:link href="http://briancray.com/2009/03/14/google-analytics-hack-track-outbound-links/feed/" rel="self" type="application/rss+xml" />
	<link>http://briancray.com/2009/03/14/google-analytics-hack-track-outbound-links/</link>
	<description>User Experience Design, Web Development, and Internet Marketing</description>
	<lastBuildDate>Fri, 30 Jul 2010 19:34:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
	<atom:link rel="hub" href="http://superfeedr.com/hubbub" />
		<item>
		<title>By: Brian Brown, Ph.D.</title>
		<link>http://briancray.com/2009/03/14/google-analytics-hack-track-outbound-links/#comment-32450</link>
		<dc:creator>Brian Brown, Ph.D.</dc:creator>
		<pubDate>Wed, 07 Jul 2010 16:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=231#comment-32450</guid>
		<description>Likewise!</description>
		<content:encoded><![CDATA[<p>Likewise!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaamit</title>
		<link>http://briancray.com/2009/03/14/google-analytics-hack-track-outbound-links/#comment-32435</link>
		<dc:creator>jaamit</dc:creator>
		<pubDate>Mon, 28 Jun 2010 15:57:06 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=231#comment-32435</guid>
		<description>This is exactly what I have been looking for, a very neat solution.  I know event tracking is &#039;neater&#039; for tracking outbound links now but the one problem with it is GA still don&#039;t allow setting events as Goals, which is something I often want to do with outbound links.

However I need to convert this so it will work with the new Async tracking code which is now standard.  Can you confirm if this code is correct?

Jquery:
_gaq.push([&#039;_trackPageview&#039;, (&#039;/outgoing/&#039; + jQuery(this).attr(&#039;href&#039;))]); 

JavaScript:
_gaq.push([&#039;_trackPageview&#039;, (&#039;/outgoing/&#039; + this.getAttribute(&#039;href&#039;))]);

Appreciate any help you can give with this!!</description>
		<content:encoded><![CDATA[<p>This is exactly what I have been looking for, a very neat solution.  I know event tracking is &#8216;neater&#8217; for tracking outbound links now but the one problem with it is GA still don&#8217;t allow setting events as Goals, which is something I often want to do with outbound links.</p>
<p>However I need to convert this so it will work with the new Async tracking code which is now standard.  Can you confirm if this code is correct?</p>
<p>Jquery:<br />
_gaq.push(['_trackPageview', ('/outgoing/' + jQuery(this).attr('href'))]); </p>
<p>JavaScript:<br />
_gaq.push(['_trackPageview', ('/outgoing/' + this.getAttribute('href'))]);</p>
<p>Appreciate any help you can give with this!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 1shot1kill</title>
		<link>http://briancray.com/2009/03/14/google-analytics-hack-track-outbound-links/#comment-32383</link>
		<dc:creator>1shot1kill</dc:creator>
		<pubDate>Thu, 27 May 2010 23:07:03 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=231#comment-32383</guid>
		<description>Hey Gavin Doolan - the problem with your method is imagine you have hundreds of links AND they change monthly. Can you imagine hand coding hundreds of new  name attribute or titles to each and every single link... UGH!</description>
		<content:encoded><![CDATA[<p>Hey Gavin Doolan &#8211; the problem with your method is imagine you have hundreds of links AND they change monthly. Can you imagine hand coding hundreds of new  name attribute or titles to each and every single link&#8230; UGH!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mev</title>
		<link>http://briancray.com/2009/03/14/google-analytics-hack-track-outbound-links/#comment-32362</link>
		<dc:creator>mev</dc:creator>
		<pubDate>Fri, 14 May 2010 09:18:26 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=231#comment-32362</guid>
		<description>Using onClick you may lose some information. If you click the right button and select the context menu &quot;Open in new tab&quot; - event onClick does not work, Google Analytics will not count anything, you lose some visits or events.
I posted recenlty about it http://chenado.net/en/1040.html</description>
		<content:encoded><![CDATA[<p>Using onClick you may lose some information. If you click the right button and select the context menu &#8220;Open in new tab&#8221; &#8211; event onClick does not work, Google Analytics will not count anything, you lose some visits or events.<br />
I posted recenlty about it <a href="http://chenado.net/en/1040.html" rel="nofollow">http://chenado.net/en/1040.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Canton Becker</title>
		<link>http://briancray.com/2009/03/14/google-analytics-hack-track-outbound-links/#comment-32002</link>
		<dc:creator>Canton Becker</dc:creator>
		<pubDate>Mon, 08 Mar 2010 18:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=231#comment-32002</guid>
		<description>Hi, this is working pretty great so far, except that when I use analytics to &quot;drilldown&quot; to /outgoing I see over 8,000 hits to / (slash) -- as in, outgoing/

See: http://cantonbecker.com/random/outgoing.png

We&#039;re trying out this code on http://asiafoundation.org

I can&#039;t figure out what might be causing this. I expected out pagecount to inflate somewhat, but this looks like some huge portion of our internal clicks counting as bogus /outgoing clicks. Our pagecounts have *doubled* since dropping in this code.

Thanks for any ideas!</description>
		<content:encoded><![CDATA[<p>Hi, this is working pretty great so far, except that when I use analytics to &#8220;drilldown&#8221; to /outgoing I see over 8,000 hits to / (slash) &#8212; as in, outgoing/</p>
<p>See: <a href="http://cantonbecker.com/random/outgoing.png" rel="nofollow">http://cantonbecker.com/random/outgoing.png</a></p>
<p>We&#8217;re trying out this code on <a href="http://asiafoundation.org" rel="nofollow">http://asiafoundation.org</a></p>
<p>I can&#8217;t figure out what might be causing this. I expected out pagecount to inflate somewhat, but this looks like some huge portion of our internal clicks counting as bogus /outgoing clicks. Our pagecounts have *doubled* since dropping in this code.</p>
<p>Thanks for any ideas!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin Doolan</title>
		<link>http://briancray.com/2009/03/14/google-analytics-hack-track-outbound-links/#comment-31864</link>
		<dc:creator>Gavin Doolan</dc:creator>
		<pubDate>Wed, 03 Feb 2010 11:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=231#comment-31864</guid>
		<description>Thanks Brian you have saved me loads of time.

This article may be before the _trackEvent() method was released. But in my opinion Event Tracking is far more appropriate for tracking outbound links than _trackPageview().

See: http://code.google.com/apis/analytics/docs/gaJS/gaJSApiEventTracking.html

Eg: _trackEvent(category, action, opt_label, opt_value)

So with an outbound link it might look something like this:

_trackEvent(&quot;links&quot;, &quot;outbound&quot;, &quot;link name&quot;, 2)

Where the category = links
The action = outbound
The label  = link name
Value = 2

This is also more robust because technically you could assign a value to each outbound click (useful for affiliates / shopping compare sites etc..) in the example above I specified a value of 2.

If your anchor tag has a name attribute or title for that matter, you could pass in that value for the link name to help identify it, or you could just take the href.value

eg: &lt;a href=&quot;&quot; title=&quot;link name&quot; rel=&quot;nofollow&quot;&gt;link name&lt;/a&gt;

Hope that helps.</description>
		<content:encoded><![CDATA[<p>Thanks Brian you have saved me loads of time.</p>
<p>This article may be before the _trackEvent() method was released. But in my opinion Event Tracking is far more appropriate for tracking outbound links than _trackPageview().</p>
<p>See: <a href="http://code.google.com/apis/analytics/docs/gaJS/gaJSApiEventTracking.html" rel="nofollow">http://code.google.com/apis/analytics/docs/gaJS/gaJSApiEventTracking.html</a></p>
<p>Eg: _trackEvent(category, action, opt_label, opt_value)</p>
<p>So with an outbound link it might look something like this:</p>
<p>_trackEvent(&#8220;links&#8221;, &#8220;outbound&#8221;, &#8220;link name&#8221;, 2)</p>
<p>Where the category = links<br />
The action = outbound<br />
The label  = link name<br />
Value = 2</p>
<p>This is also more robust because technically you could assign a value to each outbound click (useful for affiliates / shopping compare sites etc..) in the example above I specified a value of 2.</p>
<p>If your anchor tag has a name attribute or title for that matter, you could pass in that value for the link name to help identify it, or you could just take the href.value</p>
<p>eg: <a href="" title="link name" rel="nofollow">link name</a></p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alhasib</title>
		<link>http://briancray.com/2009/03/14/google-analytics-hack-track-outbound-links/#comment-31576</link>
		<dc:creator>alhasib</dc:creator>
		<pubDate>Fri, 01 Jan 2010 04:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=231#comment-31576</guid>
		<description>Great script! This is exactly what I have been looking for to track some outgoing banner ads that I have on my site.</description>
		<content:encoded><![CDATA[<p>Great script! This is exactly what I have been looking for to track some outgoing banner ads that I have on my site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://briancray.com/2009/03/14/google-analytics-hack-track-outbound-links/#comment-29567</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Wed, 21 Oct 2009 23:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=231#comment-29567</guid>
		<description>Thats an excellent script and just what i was looking for after much time surfing about, thanks a lot</description>
		<content:encoded><![CDATA[<p>Thats an excellent script and just what i was looking for after much time surfing about, thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Eales</title>
		<link>http://briancray.com/2009/03/14/google-analytics-hack-track-outbound-links/#comment-29344</link>
		<dc:creator>Luke Eales</dc:creator>
		<pubDate>Tue, 29 Sep 2009 16:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=231#comment-29344</guid>
		<description>Bear in mind that this technique will artificially inflate your pageview count.  This may or may not matter to you.  If it does, then you&#039;ll probably want to create a new profile for accurately tracking *real* pageviews, as opposed to *virtual* pageviews, which will contain a filter removing any pageviews with /outgoing/ present.</description>
		<content:encoded><![CDATA[<p>Bear in mind that this technique will artificially inflate your pageview count.  This may or may not matter to you.  If it does, then you&#8217;ll probably want to create a new profile for accurately tracking *real* pageviews, as opposed to *virtual* pageviews, which will contain a filter removing any pageviews with /outgoing/ present.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Merry</title>
		<link>http://briancray.com/2009/03/14/google-analytics-hack-track-outbound-links/#comment-29341</link>
		<dc:creator>David Merry</dc:creator>
		<pubDate>Tue, 29 Sep 2009 16:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://briancray.com/?p=231#comment-29341</guid>
		<description>Hi Brian,

Thanks for the tips, I have used them on my website and have yet to see if they work! 

Anyhow, I just took a look through the rest of your blog and some of the posts are outstanding. I will definitely be subscribing!

Thanks,

Dave</description>
		<content:encoded><![CDATA[<p>Hi Brian,</p>
<p>Thanks for the tips, I have used them on my website and have yet to see if they work! </p>
<p>Anyhow, I just took a look through the rest of your blog and some of the posts are outstanding. I will definitely be subscribing!</p>
<p>Thanks,</p>
<p>Dave</p>
]]></content:encoded>
	</item>
</channel>
</rss>
