<?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 links to direct downloads &#8211; Automatically</title>
	<atom:link href="http://www.Advanced-Web-Metrics.com/blog/2007/09/10/tracking-links-to-direct-downloads-automatically/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.Advanced-Web-Metrics.com/blog/2007/09/10/tracking-links-to-direct-downloads-automatically/</link>
	<description>Companion site for the book Advanced Web Metrics with Google Analytics by Brian Clifton</description>
	<lastBuildDate>Sat, 13 Mar 2010 17:50:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jason</title>
		<link>http://www.Advanced-Web-Metrics.com/blog/2007/09/10/tracking-links-to-direct-downloads-automatically/comment-page-1/#comment-10200</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 17 Feb 2009 17:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.Advanced-Web-Metrics.com/blog/2007/09/10/tracking-links-to-direct-downloads-automatically/#comment-10200</guid>
		<description>Great script, thanks.

I was having a problem where I was seeing a lot of &quot;/ext/undefined&quot; in analytics, I believe it was tracking links like href=&quot;javascript:foo();&quot;.. so I added
&amp;&amp; as[i].href.indexOf(&#039;http&#039;) == 0
to the if statement on line 46 and it seems to fix that issue I think.</description>
		<content:encoded><![CDATA[<p>Great script, thanks.</p>
<p>I was having a problem where I was seeing a lot of &#8220;/ext/undefined&#8221; in analytics, I believe it was tracking links like href=&#8221;javascript:foo();&#8221;.. so I added<br />
&amp;&amp; as[i].href.indexOf(&#8216;http&#8217;) == 0<br />
to the if statement on line 46 and it seems to fix that issue I think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Clifton</title>
		<link>http://www.Advanced-Web-Metrics.com/blog/2007/09/10/tracking-links-to-direct-downloads-automatically/comment-page-1/#comment-10136</link>
		<dc:creator>Brian Clifton</dc:creator>
		<pubDate>Sun, 15 Feb 2009 17:46:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.Advanced-Web-Metrics.com/blog/2007/09/10/tracking-links-to-direct-downloads-automatically/#comment-10136</guid>
		<description>&lt;strong&gt;Russell&lt;/strong&gt;: I am actually in the process of producing a combined tracking script to allow users to switch between using the virtual pageview method or using Event Tracking. The necessary changes are straight forward if you are familiar with JavaScript - just familiarise yourself with how event tracking works from the book (Chapter 7).

&lt;em&gt;Note the book is slightly different to the latest syntax but still works - see my comments in http://www.advanced-web-metrics.com/blog/2008/05/26/book-corrections-and-typos/
&lt;/em&gt;
In terms of site overlay, the onClick event handlers will not effect this as site overlay uses the href attribute of the anchor tag. Could it be something else?</description>
		<content:encoded><![CDATA[<p><strong>Russell</strong>: I am actually in the process of producing a combined tracking script to allow users to switch between using the virtual pageview method or using Event Tracking. The necessary changes are straight forward if you are familiar with JavaScript &#8211; just familiarise yourself with how event tracking works from the book (Chapter 7).</p>
<p><em>Note the book is slightly different to the latest syntax but still works &#8211; see my comments in <a href="http://www.advanced-web-metrics.com/blog/2008/05/26/book-corrections-and-typos/" rel="nofollow">http://www.advanced-web-metrics.com/blog/2008/05/26/book-corrections-and-typos/</a><br />
</em><br />
In terms of site overlay, the onClick event handlers will not effect this as site overlay uses the href attribute of the anchor tag. Could it be something else?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Russell</title>
		<link>http://www.Advanced-Web-Metrics.com/blog/2007/09/10/tracking-links-to-direct-downloads-automatically/comment-page-1/#comment-10061</link>
		<dc:creator>Russell</dc:creator>
		<pubDate>Thu, 12 Feb 2009 15:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.Advanced-Web-Metrics.com/blog/2007/09/10/tracking-links-to-direct-downloads-automatically/#comment-10061</guid>
		<description>Hi Brian, I was interested in using GA event tracking to track the outbound links and downloads instead of registering them as pageviews. Any ideas of what I would need to modify in your script to enable this?

Also, I&#039;ve found that some JS calls to load an overlay window aren&#039;t working because the current script overwrites every href tag with the onclick functionality. Do you have any ideas on how I could modify the script to ignore these href tags (maybe by recognizing them by some kind of id, class or as having an existing onclick behavior)?

Thanks again, this script is a great additional to our site tracking!</description>
		<content:encoded><![CDATA[<p>Hi Brian, I was interested in using GA event tracking to track the outbound links and downloads instead of registering them as pageviews. Any ideas of what I would need to modify in your script to enable this?</p>
<p>Also, I&#8217;ve found that some JS calls to load an overlay window aren&#8217;t working because the current script overwrites every href tag with the onclick functionality. Do you have any ideas on how I could modify the script to ignore these href tags (maybe by recognizing them by some kind of id, class or as having an existing onclick behavior)?</p>
<p>Thanks again, this script is a great additional to our site tracking!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.Advanced-Web-Metrics.com/blog/2007/09/10/tracking-links-to-direct-downloads-automatically/comment-page-1/#comment-8227</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 20 Oct 2008 17:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.Advanced-Web-Metrics.com/blog/2007/09/10/tracking-links-to-direct-downloads-automatically/#comment-8227</guid>
		<description>Hi Brian,

Trying to use this script on http://www.earth-kind.com and having some problems. Tried posting the code directly into our page and for some reason the dotnetnuke is choking on it, so I put the entire script in an external javascript file 

http://www.earth-kind.com/js/analytics-auto-tagging.js

Since the tracking script needs to be called after my call to google analytics (right?)

I then put the google analytics code in the head and called it immediately after the analytics code in the head with



Big problems occured after that. Most noticeable being the stylesheet exploded even though we hadn&#039;t touched any code controlling that.

Is there something you can see I&#039;m doing wrong? Are there additional instructions I&#039;m missing? I saw something about...&quot;place the addExtDocEvents() call in an onLoad event handler and host the JavaScript in a separate file.&quot; but I don&#039;t see that in the final version of the script posted in your library.

thanks -</description>
		<content:encoded><![CDATA[<p>Hi Brian,</p>
<p>Trying to use this script on <a href="http://www.earth-kind.com" rel="nofollow">http://www.earth-kind.com</a> and having some problems. Tried posting the code directly into our page and for some reason the dotnetnuke is choking on it, so I put the entire script in an external javascript file </p>
<p><a href="http://www.earth-kind.com/js/analytics-auto-tagging.js" rel="nofollow">http://www.earth-kind.com/js/analytics-auto-tagging.js</a></p>
<p>Since the tracking script needs to be called after my call to google analytics (right?)</p>
<p>I then put the google analytics code in the head and called it immediately after the analytics code in the head with</p>
<p>Big problems occured after that. Most noticeable being the stylesheet exploded even though we hadn&#8217;t touched any code controlling that.</p>
<p>Is there something you can see I&#8217;m doing wrong? Are there additional instructions I&#8217;m missing? I saw something about&#8230;&#8221;place the addExtDocEvents() call in an onLoad event handler and host the JavaScript in a separate file.&#8221; but I don&#8217;t see that in the final version of the script posted in your library.</p>
<p>thanks -</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nita</title>
		<link>http://www.Advanced-Web-Metrics.com/blog/2007/09/10/tracking-links-to-direct-downloads-automatically/comment-page-1/#comment-7514</link>
		<dc:creator>Nita</dc:creator>
		<pubDate>Tue, 26 Aug 2008 16:21:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.Advanced-Web-Metrics.com/blog/2007/09/10/tracking-links-to-direct-downloads-automatically/#comment-7514</guid>
		<description>I see the stats will be under downloads folder.</description>
		<content:encoded><![CDATA[<p>I see the stats will be under downloads folder.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
