<?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: Tracking Events in Google Analytics</title>
	<atom:link href="http://www.ravelrumba.com/blog/tracking-events-in-analytics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ravelrumba.com/blog/tracking-events-in-analytics/</link>
	<description>web design &#38; web development</description>
	<lastBuildDate>Tue, 27 Jul 2010 00:01:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=2900</generator>
	<item>
		<title>By: Rob Flaherty</title>
		<link>http://www.ravelrumba.com/blog/tracking-events-in-analytics/comment-page-1/#comment-665</link>
		<dc:creator>Rob Flaherty</dc:creator>
		<pubDate>Thu, 01 Jul 2010 15:56:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.ravelrumba.com/?p=421#comment-665</guid>
		<description>Hi James,
You&#039;re correct about the potential race condition, but I think just about every tracking script is exposed to a potential race condition, no?  (FWIW, I don&#039;t think I mentioned it in the post but in my implementation of the script I&#039;ve placed it inside the DOM ready function.)  GA&#039;s Async implementation allows activity to be recorded even before the GA script has loaded by storing the events in the _gaq array.  So the race is between the execution of the click tracking function and the user&#039;s clicking.

I believe your setTimeout method is compatible but I think there&#039;s a better solution.</description>
		<content:encoded><![CDATA[<p>Hi James,<br />
You&#8217;re correct about the potential race condition, but I think just about every tracking script is exposed to a potential race condition, no?  (FWIW, I don&#8217;t think I mentioned it in the post but in my implementation of the script I&#8217;ve placed it inside the DOM ready function.)  GA&#8217;s Async implementation allows activity to be recorded even before the GA script has loaded by storing the events in the _gaq array.  So the race is between the execution of the click tracking function and the user&#8217;s clicking.</p>
<p>I believe your setTimeout method is compatible but I think there&#8217;s a better solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Royal-Lawson</title>
		<link>http://www.ravelrumba.com/blog/tracking-events-in-analytics/comment-page-1/#comment-664</link>
		<dc:creator>James Royal-Lawson</dc:creator>
		<pubDate>Thu, 01 Jul 2010 14:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.ravelrumba.com/?p=421#comment-664</guid>
		<description>I like the non-jquery solution you&#039;ve done... one question though - Will it potentially suffer from a race condition?

I can&#039;t see a delay anywhere and i&#039;m guessing that any link will still be followed whilst this onclick code is being executed - meaning that there&#039;s a risk the next page starts loading before __utm.gif is returned by GA.

Normally i&#039;d add a 
setTimeout(&#039;document.location = &quot;&#039; + link.href + &#039;&quot;&#039;, 150); to my clicktracking function and then a return false; to the onclick in the &lt;a&gt; tag.  Is that solution compatible with yours?

/James.</description>
		<content:encoded><![CDATA[<p>I like the non-jquery solution you&#8217;ve done&#8230; one question though &#8211; Will it potentially suffer from a race condition?</p>
<p>I can&#8217;t see a delay anywhere and i&#8217;m guessing that any link will still be followed whilst this onclick code is being executed &#8211; meaning that there&#8217;s a risk the next page starts loading before __utm.gif is returned by GA.</p>
<p>Normally i&#8217;d add a<br />
setTimeout(&#8216;document.location = &#8220;&#8216; + link.href + &#8216;&#8221;&#8216;, 150); to my clicktracking function and then a return false; to the onclick in the <a> tag.  Is that solution compatible with yours?</p>
<p>/James.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David pavlicko</title>
		<link>http://www.ravelrumba.com/blog/tracking-events-in-analytics/comment-page-1/#comment-528</link>
		<dc:creator>David pavlicko</dc:creator>
		<pubDate>Thu, 25 Mar 2010 13:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ravelrumba.com/?p=421#comment-528</guid>
		<description>handy post- thanks for sharing.</description>
		<content:encoded><![CDATA[<p>handy post- thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Flaherty</title>
		<link>http://www.ravelrumba.com/blog/tracking-events-in-analytics/comment-page-1/#comment-253</link>
		<dc:creator>Rob Flaherty</dc:creator>
		<pubDate>Sun, 31 Jan 2010 16:48:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.ravelrumba.com/?p=421#comment-253</guid>
		<description>@Victor

Sorry for the delay.  I just updated the post.  Thanks for your patience!</description>
		<content:encoded><![CDATA[<p>@Victor</p>
<p>Sorry for the delay.  I just updated the post.  Thanks for your patience!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://www.ravelrumba.com/blog/tracking-events-in-analytics/comment-page-1/#comment-250</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Sun, 31 Jan 2010 03:48:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.ravelrumba.com/?p=421#comment-250</guid>
		<description>Just checking in .. to see if you have your new shiny robust code!  Thanks for your effort.</description>
		<content:encoded><![CDATA[<p>Just checking in .. to see if you have your new shiny robust code!  Thanks for your effort.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
