<?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: Better Google Analytics JavaScript that doesn&#8217;t block page downloading</title>
	<atom:link href="http://lyncd.com/2009/03/better-google-analytics-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://lyncd.com/2009/03/better-google-analytics-javascript/</link>
	<description></description>
	<lastBuildDate>Tue, 31 Aug 2010 14:52:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Michelle</title>
		<link>http://lyncd.com/2009/03/better-google-analytics-javascript/comment-page-1/#comment-3078</link>
		<dc:creator>Michelle</dc:creator>
		<pubDate>Mon, 23 Aug 2010 06:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://lyncd.com/?p=153#comment-3078</guid>
		<description>Thank you so much for this! I&#039;m not a programmer at all, but this was really easy to follow, my pages are loading faster and I&#039;ve &quot;checked status&quot; a few times and everything seems to be running fine.</description>
		<content:encoded><![CDATA[<p>Thank you so much for this! I&#8217;m not a programmer at all, but this was really easy to follow, my pages are loading faster and I&#8217;ve &#8220;checked status&#8221; a few times and everything seems to be running fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://lyncd.com/2009/03/better-google-analytics-javascript/comment-page-1/#comment-2865</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Wed, 04 Aug 2010 14:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://lyncd.com/?p=153#comment-2865</guid>
		<description>Very useful, thanks for posting.</description>
		<content:encoded><![CDATA[<p>Very useful, thanks for posting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: msg</title>
		<link>http://lyncd.com/2009/03/better-google-analytics-javascript/comment-page-1/#comment-1526</link>
		<dc:creator>msg</dc:creator>
		<pubDate>Thu, 07 Jan 2010 16:04:16 +0000</pubDate>
		<guid isPermaLink="false">http://lyncd.com/?p=153#comment-1526</guid>
		<description>OK, looking again, I guess that it is just the vars declaration.  Was confused by the mix of declarations and definition in the same statement.</description>
		<content:encoded><![CDATA[<p>OK, looking again, I guess that it is just the vars declaration.  Was confused by the mix of declarations and definition in the same statement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: msg</title>
		<link>http://lyncd.com/2009/03/better-google-analytics-javascript/comment-page-1/#comment-1521</link>
		<dc:creator>msg</dc:creator>
		<pubDate>Thu, 07 Jan 2010 02:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://lyncd.com/?p=153#comment-1521</guid>
		<description>I am confused, what is the &quot;, pageTracker, s&quot; part of the line that defines the var gaJsHost?</description>
		<content:encoded><![CDATA[<p>I am confused, what is the &#8220;, pageTracker, s&#8221; part of the line that defines the var gaJsHost?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://lyncd.com/2009/03/better-google-analytics-javascript/comment-page-1/#comment-1265</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Fri, 09 Oct 2009 21:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://lyncd.com/?p=153#comment-1265</guid>
		<description>Using Safari &quot;Web Inspector&quot;, it becomes clear to see that this still blocks rendering.

Any suggestions on a work around?</description>
		<content:encoded><![CDATA[<p>Using Safari &#8220;Web Inspector&#8221;, it becomes clear to see that this still blocks rendering.</p>
<p>Any suggestions on a work around?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego</title>
		<link>http://lyncd.com/2009/03/better-google-analytics-javascript/comment-page-1/#comment-880</link>
		<dc:creator>Diego</dc:creator>
		<pubDate>Tue, 18 Aug 2009 19:49:25 +0000</pubDate>
		<guid isPermaLink="false">http://lyncd.com/?p=153#comment-880</guid>
		<description>Nice code, clean, and fast.
One note to all those people who are working on the operafix.  Adding a random parameter to the ga.js file so it fixes the cache problem defeats the use of this script all together and it will add download time to all your pages.</description>
		<content:encoded><![CDATA[<p>Nice code, clean, and fast.<br />
One note to all those people who are working on the operafix.  Adding a random parameter to the ga.js file so it fixes the cache problem defeats the use of this script all together and it will add download time to all your pages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://lyncd.com/2009/03/better-google-analytics-javascript/comment-page-1/#comment-416</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Mon, 25 May 2009 04:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://lyncd.com/?p=153#comment-416</guid>
		<description>Even using this script to load Google Analytics, I still occasionally have my web page HTML blocked in rendering while my Firefox 3.0 status bar says

&quot;Transferring data from www.google-analytics.com...&quot;

Any ideas?</description>
		<content:encoded><![CDATA[<p>Even using this script to load Google Analytics, I still occasionally have my web page HTML blocked in rendering while my Firefox 3.0 status bar says</p>
<p>&#8220;Transferring data from <a href="http://www.google-analytics.com.." rel="nofollow">http://www.google-analytics.com..</a>.&#8221;</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sticks</title>
		<link>http://lyncd.com/2009/03/better-google-analytics-javascript/comment-page-1/#comment-262</link>
		<dc:creator>sticks</dc:creator>
		<pubDate>Thu, 23 Apr 2009 04:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://lyncd.com/?p=153#comment-262</guid>
		<description>Many thanks for the report and info -- I&#039;m away right now but will check this all out in a couple of days.</description>
		<content:encoded><![CDATA[<p>Many thanks for the report and info &#8212; I&#8217;m away right now but will check this all out in a couple of days.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Magnus</title>
		<link>http://lyncd.com/2009/03/better-google-analytics-javascript/comment-page-1/#comment-255</link>
		<dc:creator>John Magnus</dc:creator>
		<pubDate>Wed, 22 Apr 2009 11:52:23 +0000</pubDate>
		<guid isPermaLink="false">http://lyncd.com/?p=153#comment-255</guid>
		<description>Nice idea, nice script and thanks for publishing it!

As Bruno mentioned, it fails in Opera when the script is cached. The problem isn&#039;t present with the latest Opera 10 weeklies, though in the last few release versions (9.6++) it fails on &quot;_gat&quot;. Had this exact problem when creating a Twitter widget a while back, at the time the daily snapshot of Google Chrome exhibited this problem as well (haven&#039;t re-tested). With my widget, the no-cache workaround solved the issues in both browsers.

Here&#039;s a &lt;a href=&quot;http://twitpic.com/3ri9z&quot; rel=&quot;nofollow&quot;&gt;screenshot of Opera&#039;s error console&lt;/a&gt;, viewing this post with Opera 9.64 (the latest release). 

I&#039;ve implemented what I hope is a workaround at &lt;a href=&quot;http://john.magnus.juliussen.info/&quot; rel=&quot;nofollow&quot;&gt;my sandbox&lt;/a&gt; (&lt;a href=&quot;http://john.magnus.juliussen.info/estream/estream.js&quot; rel=&quot;nofollow&quot;&gt;js&lt;/a&gt;). I&#039;m fairly new to Google Analytics and I&#039;m no JavaScript wizard, so I have no idea if it actually solves the problem or introduces new issues (though no errors are reported!).</description>
		<content:encoded><![CDATA[<p>Nice idea, nice script and thanks for publishing it!</p>
<p>As Bruno mentioned, it fails in Opera when the script is cached. The problem isn&#8217;t present with the latest Opera 10 weeklies, though in the last few release versions (9.6++) it fails on &#8220;_gat&#8221;. Had this exact problem when creating a Twitter widget a while back, at the time the daily snapshot of Google Chrome exhibited this problem as well (haven&#8217;t re-tested). With my widget, the no-cache workaround solved the issues in both browsers.</p>
<p>Here&#8217;s a <a href="http://twitpic.com/3ri9z" rel="nofollow">screenshot of Opera&#8217;s error console</a>, viewing this post with Opera 9.64 (the latest release). </p>
<p>I&#8217;ve implemented what I hope is a workaround at <a href="http://john.magnus.juliussen.info/" rel="nofollow">my sandbox</a> (<a href="http://john.magnus.juliussen.info/estream/estream.js" rel="nofollow">js</a>). I&#8217;m fairly new to Google Analytics and I&#8217;m no JavaScript wizard, so I have no idea if it actually solves the problem or introduces new issues (though no errors are reported!).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sticks</title>
		<link>http://lyncd.com/2009/03/better-google-analytics-javascript/comment-page-1/#comment-215</link>
		<dc:creator>sticks</dc:creator>
		<pubDate>Sat, 28 Mar 2009 02:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://lyncd.com/?p=153#comment-215</guid>
		<description>Thanks very much for letting me know! I&#039;ve changed my example code to check for &lt;code&gt;&#124;&#124; ‘complete’ === s.readyState&lt;/code&gt;. I think somewhere in the dark recesses of my mind I already knew this about IE, but sure didn&#039;t remember it when I was adapting the example code!

With respect to Opera, I haven&#039;t been able to produce any problems (Opera 10 alpha, both with and without new &lt;a href=&quot;http://www.opera.com/support/usingopera/operaini/#extensions&quot; rel=&quot;nofollow&quot;&gt;Delayed Script Execution&lt;/a&gt; setting enabled). But then, I&#039;ve been running/testing &lt;em&gt;slightly&lt;/em&gt; different code (a couple of functions abstracted and the whole thing abstracted into a module). So, I&#039;ve also modified my example code above to better match my abstracted version in case that eliminates the problem you&#039;re having.

I wonder if you retest if you&#039;ll still have problems with Opera when ga.js is loaded from cache? If so, can you tell me what version of Opera you&#039;re testing so I can debug? You might also use the Opera Developer Tools console on this website ... you can check in the network tab to see that __utm.gif is loaded, and use the scripts tab / command line to check the value of lyncd.log, it&#039;s an array that&#039;ll include the string &quot;GA executed&quot; if the callback that initializes the GA pagetracker has been run.

Thanks again for the bug report and solution!</description>
		<content:encoded><![CDATA[<p>Thanks very much for letting me know! I&#8217;ve changed my example code to check for <code>|| ‘complete’ === s.readyState</code>. I think somewhere in the dark recesses of my mind I already knew this about IE, but sure didn&#8217;t remember it when I was adapting the example code!</p>
<p>With respect to Opera, I haven&#8217;t been able to produce any problems (Opera 10 alpha, both with and without new <a href="http://www.opera.com/support/usingopera/operaini/#extensions" rel="nofollow">Delayed Script Execution</a> setting enabled). But then, I&#8217;ve been running/testing <em>slightly</em> different code (a couple of functions abstracted and the whole thing abstracted into a module). So, I&#8217;ve also modified my example code above to better match my abstracted version in case that eliminates the problem you&#8217;re having.</p>
<p>I wonder if you retest if you&#8217;ll still have problems with Opera when ga.js is loaded from cache? If so, can you tell me what version of Opera you&#8217;re testing so I can debug? You might also use the Opera Developer Tools console on this website &#8230; you can check in the network tab to see that __utm.gif is loaded, and use the scripts tab / command line to check the value of lyncd.log, it&#8217;s an array that&#8217;ll include the string &#8220;GA executed&#8221; if the callback that initializes the GA pagetracker has been run.</p>
<p>Thanks again for the bug report and solution!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
