<?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: Using Google Analytics to track click throughs from your website</title>
	<atom:link href="http://www.cotsweb.com/blog/using-google-analytics-to-track-click-throughs-from-your-website-7.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cotsweb.com/blog/using-google-analytics-to-track-click-throughs-from-your-website-7.html</link>
	<description>Web design, Website development and life in the Cotswolds</description>
	<lastBuildDate>Wed, 01 Feb 2012 21:40:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: cotsweb</title>
		<link>http://www.cotsweb.com/blog/using-google-analytics-to-track-click-throughs-from-your-website-7.html/comment-page-1#comment-289</link>
		<dc:creator>cotsweb</dc:creator>
		<pubDate>Tue, 07 Dec 2010 12:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://cotsweb.com/blog/?p=7#comment-289</guid>
		<description>Hi Ian,

You can do what Google call &lt;a href=&quot;http://code.google.com/apis/analytics/docs/tracking/gaTrackingSite.html&quot; rel=&quot;nofollow&quot;&gt;Cross-Domain tracking&lt;/a&gt; if you have some control over what is put on the external site.

Otherwise I think you would need to have the external site call a cgi script on your server which then returned the tracking image rather than call the tracking image directly, you could then put some tracking code in the script.  This is the way that businesses like DoubleClick do it.

I am no expert in this sort of thing so I could be completely wrong, I would be interested to hear how you solve the problem.

Regards
Mark</description>
		<content:encoded><![CDATA[<p>Hi Ian,</p>
<p>You can do what Google call <a href="http://code.google.com/apis/analytics/docs/tracking/gaTrackingSite.html" rel="nofollow">Cross-Domain tracking</a> if you have some control over what is put on the external site.</p>
<p>Otherwise I think you would need to have the external site call a cgi script on your server which then returned the tracking image rather than call the tracking image directly, you could then put some tracking code in the script.  This is the way that businesses like DoubleClick do it.</p>
<p>I am no expert in this sort of thing so I could be completely wrong, I would be interested to hear how you solve the problem.</p>
<p>Regards<br />
Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://www.cotsweb.com/blog/using-google-analytics-to-track-click-throughs-from-your-website-7.html/comment-page-1#comment-286</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Tue, 07 Dec 2010 03:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://cotsweb.com/blog/?p=7#comment-286</guid>
		<description>Hi there, I&#039;m wondering if it is then possible to track an image loading on an external site in Google Analytics?

eg: my site is www.mysite.com. 
I create a blank gif image and upload to my site and say I name it: 
www.mysite.com/trackingimage.gif

Then on an external site I am promoting, on the &#039;thankyou&#039; page (conversion page) I have this:

img src=”www.mysite.com/trackingimage.gif” alt=”&quot; width=”1? height=”1?

Would there be some way to check Google Analytics to see how many times it was loaded plus track which keywords lead to it been triggered?

Or is there some other code I could add to the above image like my UA-XXXXXX-XX number to get this information?

Thanks for your time, kind regards, Ian</description>
		<content:encoded><![CDATA[<p>Hi there, I&#8217;m wondering if it is then possible to track an image loading on an external site in Google Analytics?</p>
<p>eg: my site is <a href="http://www.mysite.com" rel="nofollow">http://www.mysite.com</a>.<br />
I create a blank gif image and upload to my site and say I name it:<br />
<a href="http://www.mysite.com/trackingimage.gif" rel="nofollow">http://www.mysite.com/trackingimage.gif</a></p>
<p>Then on an external site I am promoting, on the &#8216;thankyou&#8217; page (conversion page) I have this:</p>
<p>img src=”www.mysite.com/trackingimage.gif” alt=”&#8221; width=”1? height=”1?</p>
<p>Would there be some way to check Google Analytics to see how many times it was loaded plus track which keywords lead to it been triggered?</p>
<p>Or is there some other code I could add to the above image like my UA-XXXXXX-XX number to get this information?</p>
<p>Thanks for your time, kind regards, Ian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cotsweb</title>
		<link>http://www.cotsweb.com/blog/using-google-analytics-to-track-click-throughs-from-your-website-7.html/comment-page-1#comment-129</link>
		<dc:creator>cotsweb</dc:creator>
		<pubDate>Mon, 09 Nov 2009 13:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://cotsweb.com/blog/?p=7#comment-129</guid>
		<description>An interesting question, and I&#039;m afraid I don&#039;t know the answer.

Of course you should be able to see the file access in old fashioned web server logs but that isn&#039;t as convenient or as reliable as proper analytics.   If the PDF file has been cached somewhere then you won&#039;t see any hit on your own server.

What you really need to do is embed the javascript for Google Analytics within the PDF file, so when somebody opens the file it invokes GA to log it for you. 
I think this might be possible using something like &lt;a href=&quot;http://www.adobe.com/devnet/acrobat/javascript.html&quot; rel=&quot;nofollow&quot;&gt;javascript for acrobat&lt;/a&gt; but I don&#039;t know.

Also there may be security problems, it is one thing invoking javascript when browsing the web but quite another if a downloaded document does it to talk to a remote site every time you open a document.

If somebody has a proper solution to this problem I&#039;d love to see it.</description>
		<content:encoded><![CDATA[<p>An interesting question, and I&#8217;m afraid I don&#8217;t know the answer.</p>
<p>Of course you should be able to see the file access in old fashioned web server logs but that isn&#8217;t as convenient or as reliable as proper analytics.   If the PDF file has been cached somewhere then you won&#8217;t see any hit on your own server.</p>
<p>What you really need to do is embed the javascript for Google Analytics within the PDF file, so when somebody opens the file it invokes GA to log it for you.<br />
I think this might be possible using something like <a href="http://www.adobe.com/devnet/acrobat/javascript.html" rel="nofollow">javascript for acrobat</a> but I don&#8217;t know.</p>
<p>Also there may be security problems, it is one thing invoking javascript when browsing the web but quite another if a downloaded document does it to talk to a remote site every time you open a document.</p>
<p>If somebody has a proper solution to this problem I&#8217;d love to see it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: undone</title>
		<link>http://www.cotsweb.com/blog/using-google-analytics-to-track-click-throughs-from-your-website-7.html/comment-page-1#comment-126</link>
		<dc:creator>undone</dc:creator>
		<pubDate>Fri, 06 Nov 2009 15:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://cotsweb.com/blog/?p=7#comment-126</guid>
		<description>Hi everyone,
yes using onClick=”javascript: pageTracker._trackPageview works fine but it is still dependent on whether or not someone will click on the respective link. now my question is how could one track the views of a PDF which is indexed in the organic search, which makes the use of onClick=”javascript: pageTracker._trackPageview to the link useless, as one could read it and download it without clicking the link. any ideas??</description>
		<content:encoded><![CDATA[<p>Hi everyone,<br />
yes using onClick=”javascript: pageTracker._trackPageview works fine but it is still dependent on whether or not someone will click on the respective link. now my question is how could one track the views of a PDF which is indexed in the organic search, which makes the use of onClick=”javascript: pageTracker._trackPageview to the link useless, as one could read it and download it without clicking the link. any ideas??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cotsweb</title>
		<link>http://www.cotsweb.com/blog/using-google-analytics-to-track-click-throughs-from-your-website-7.html/comment-page-1#comment-62</link>
		<dc:creator>cotsweb</dc:creator>
		<pubDate>Tue, 04 Aug 2009 11:48:42 +0000</pubDate>
		<guid isPermaLink="false">http://cotsweb.com/blog/?p=7#comment-62</guid>
		<description>Hi Lee,
I had a quick look at your site and I think what you have done should work.

I would edit the 
&lt;code&gt;pageTracker._trackPageview(’www.leehughes.co.uk/feed.xml’)&lt;/code&gt;
to just say
&lt;code&gt;pageTracker._trackPageview(’/feed.xml’)&lt;/code&gt;

And I would move the google analytics code to just under the opening body tag, for this purpose it needs to be above where you call it.  Don&#039;t duplicate the code, just move it, it should still work ok.

That is one major expedition you have planned, good luck!

A late edit to answer the rest of your questions;

To view your stats go into Google Analytics and drill down from Content Overview (click on &lt;em&gt;view report&lt;/em&gt;) you should find an entry for /feed.xml which will show you how many people clicked on your RSS button.

You can add the javascript call to any link but don&#039;t add it to anything where the destination already has the google analytics code in it or you will be double counting.  It is best reserved for links where you can&#039;t include google analytics code in the destination file, that is external links or links to things like xml and pdf files.</description>
		<content:encoded><![CDATA[<p>Hi Lee,<br />
I had a quick look at your site and I think what you have done should work.</p>
<p>I would edit the<br />
<code>pageTracker._trackPageview(’www.leehughes.co.uk/feed.xml’)</code><br />
to just say<br />
<code>pageTracker._trackPageview(’/feed.xml’)</code></p>
<p>And I would move the google analytics code to just under the opening body tag, for this purpose it needs to be above where you call it.  Don&#8217;t duplicate the code, just move it, it should still work ok.</p>
<p>That is one major expedition you have planned, good luck!</p>
<p>A late edit to answer the rest of your questions;</p>
<p>To view your stats go into Google Analytics and drill down from Content Overview (click on <em>view report</em>) you should find an entry for /feed.xml which will show you how many people clicked on your RSS button.</p>
<p>You can add the javascript call to any link but don&#8217;t add it to anything where the destination already has the google analytics code in it or you will be double counting.  It is best reserved for links where you can&#8217;t include google analytics code in the destination file, that is external links or links to things like xml and pdf files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lee hughes</title>
		<link>http://www.cotsweb.com/blog/using-google-analytics-to-track-click-throughs-from-your-website-7.html/comment-page-1#comment-61</link>
		<dc:creator>lee hughes</dc:creator>
		<pubDate>Tue, 28 Jul 2009 16:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://cotsweb.com/blog/?p=7#comment-61</guid>
		<description>Hi, 

am new to the whole web design thing. Am looking for a way to track rss subscription. Will this provide that? 
From my (limited) understanding I just apply what you said above to my rss feed link? (am creating my own). 

I put my google code right at the bottom of my page (as suggested) will putting another code in affect my results in any way? Or is it the same code? Does putting it where you suggest make any difference to the normal tracking? 

The code you provided 

I have to apply this to every link that I want to track? 

How do I view the results in Google Analytics?

Thanks, sorry for all the questions I just wanted to get it straight in my head :)</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>am new to the whole web design thing. Am looking for a way to track rss subscription. Will this provide that?<br />
From my (limited) understanding I just apply what you said above to my rss feed link? (am creating my own). </p>
<p>I put my google code right at the bottom of my page (as suggested) will putting another code in affect my results in any way? Or is it the same code? Does putting it where you suggest make any difference to the normal tracking? </p>
<p>The code you provided </p>
<p>I have to apply this to every link that I want to track? </p>
<p>How do I view the results in Google Analytics?</p>
<p>Thanks, sorry for all the questions I just wanted to get it straight in my head <img src='http://www.cotsweb.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cotsweb</title>
		<link>http://www.cotsweb.com/blog/using-google-analytics-to-track-click-throughs-from-your-website-7.html/comment-page-1#comment-36</link>
		<dc:creator>cotsweb</dc:creator>
		<pubDate>Thu, 19 Feb 2009 12:29:20 +0000</pubDate>
		<guid isPermaLink="false">http://cotsweb.com/blog/?p=7#comment-36</guid>
		<description>Hi Keith,
I&#039;m not sure if I quite understand your comment but I&#039;ll have a stab at answering.

If you are wanting to record clicks in your own MySQL database as well as using Google Analytics then I think you would need to replace the onclick call to pageTracker._trackPageview with a call to your own javascript routine which first wrote a record to your MySQL database and then called pageTracker._trackPageview 
But I think this might get a bit messy as Javascript runs on the client and MySQL runs on the server, getting it working smoothly might be difficult.

Or you could go into Google Analytics and export the data from there.  I think you can get Analytics to export data to a CSV file or something similar which you could then read with a simple program and store in your MySQL database.  You can get Analytics to automatically email you a file each day/week/month or whatever suits your purpose.

I haven&#039;t tried either of these methods so don&#039;t assume that I really know what I&#039;m talking about but I hope this answer helps.  Or have I totally misinterepreted your question?</description>
		<content:encoded><![CDATA[<p>Hi Keith,<br />
I&#8217;m not sure if I quite understand your comment but I&#8217;ll have a stab at answering.</p>
<p>If you are wanting to record clicks in your own MySQL database as well as using Google Analytics then I think you would need to replace the onclick call to pageTracker._trackPageview with a call to your own javascript routine which first wrote a record to your MySQL database and then called pageTracker._trackPageview<br />
But I think this might get a bit messy as Javascript runs on the client and MySQL runs on the server, getting it working smoothly might be difficult.</p>
<p>Or you could go into Google Analytics and export the data from there.  I think you can get Analytics to export data to a CSV file or something similar which you could then read with a simple program and store in your MySQL database.  You can get Analytics to automatically email you a file each day/week/month or whatever suits your purpose.</p>
<p>I haven&#8217;t tried either of these methods so don&#8217;t assume that I really know what I&#8217;m talking about but I hope this answer helps.  Or have I totally misinterepreted your question?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith</title>
		<link>http://www.cotsweb.com/blog/using-google-analytics-to-track-click-throughs-from-your-website-7.html/comment-page-1#comment-35</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Thu, 19 Feb 2009 05:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://cotsweb.com/blog/?p=7#comment-35</guid>
		<description>This is interesting, but google analytics _trackPageview does not have the ability to log clicks to a (mysql) database.  Any workaround?</description>
		<content:encoded><![CDATA[<p>This is interesting, but google analytics _trackPageview does not have the ability to log clicks to a (mysql) database.  Any workaround?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

