<?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: Coming soon: external link tracking (and more) in Plone with collective.googleanalytics</title>
	<atom:link href="http://jstahl.org/archives/2010/05/13/external-link-tracking-and-more-in-plone-with-google-analytics/feed/" rel="self" type="application/rss+xml" />
	<link>http://jstahl.org/archives/2010/05/13/external-link-tracking-and-more-in-plone-with-google-analytics/</link>
	<description>Politics, the environment, technology, activism. And stuff.</description>
	<lastBuildDate>Tue, 24 Jan 2012 23:00:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Joel Davis</title>
		<link>http://jstahl.org/archives/2010/05/13/external-link-tracking-and-more-in-plone-with-google-analytics/comment-page-1/#comment-395859</link>
		<dc:creator>Joel Davis</dc:creator>
		<pubDate>Tue, 18 May 2010 07:03:49 +0000</pubDate>
		<guid isPermaLink="false">http://jstahl.org/?p=2262#comment-395859</guid>
		<description>&lt;p&gt;Jon, figured that event tracking must be newer.  It definitely looks like a better way.  The fake page views thing was a bit of a kludge.  I&#039;ll have a look at event tracking for next time.  The rest of the jquery might still be useful.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jon, figured that event tracking must be newer.  It definitely looks like a better way.  The fake page views thing was a bit of a kludge.  I&#8217;ll have a look at event tracking for next time.  The rest of the jquery might still be useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Stahl</title>
		<link>http://jstahl.org/archives/2010/05/13/external-link-tracking-and-more-in-plone-with-google-analytics/comment-page-1/#comment-395793</link>
		<dc:creator>Jon Stahl</dc:creator>
		<pubDate>Fri, 14 May 2010 14:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://jstahl.org/?p=2262#comment-395793</guid>
		<description>&lt;p&gt;Irina-&lt;/p&gt;

&lt;p&gt;Great question!  collective.googleanalytics doesn&#039;t currently include any public-facing functionality like that, but it would be quite simple to implement.  We don&#039;t currently have plans to do so, because we&#039;ve mainly been focused on making analytics more useful and accessible t to the site managers, but we&#039;d welcome a contribution along these lines, this is a great idea!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Irina-</p>
<p>Great question!  collective.googleanalytics doesn&#8217;t currently include any public-facing functionality like that, but it would be quite simple to implement.  We don&#8217;t currently have plans to do so, because we&#8217;ve mainly been focused on making analytics more useful and accessible t to the site managers, but we&#8217;d welcome a contribution along these lines, this is a great idea!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: irina</title>
		<link>http://jstahl.org/archives/2010/05/13/external-link-tracking-and-more-in-plone-with-google-analytics/comment-page-1/#comment-395791</link>
		<dc:creator>irina</dc:creator>
		<pubDate>Fri, 14 May 2010 12:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://jstahl.org/?p=2262#comment-395791</guid>
		<description>&lt;p&gt;is it possible to display somewhere on the site popular content based on google analytics? If not, is there a chance that it will be implemented?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>is it possible to display somewhere on the site popular content based on google analytics? If not, is there a chance that it will be implemented?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Stahl</title>
		<link>http://jstahl.org/archives/2010/05/13/external-link-tracking-and-more-in-plone-with-google-analytics/comment-page-1/#comment-395788</link>
		<dc:creator>Jon Stahl</dc:creator>
		<pubDate>Fri, 14 May 2010 04:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://jstahl.org/?p=2262#comment-395788</guid>
		<description>&lt;p&gt;Joel - Thanks!&lt;br /&gt;
At the risk of speaking of things well beyond my actual knowledge, my understanding is that Matt considered doing &quot;fake page views,&quot; (which was the only way to do this kind of tracking until fairly recently), but decided instead to use the new Event Tracking API.  This has several advantages, the biggest of which is that treating these events as page views actually skews your page view stats (e.g. an outbound link shouldn&#039;t count as a page view).   IOW, apparently Events are now considered the &quot;best practice&quot; way to do this kind of stuff.     Give it a whirl and let us know what you think!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Joel &#8211; Thanks!<br />
At the risk of speaking of things well beyond my actual knowledge, my understanding is that Matt considered doing &#8220;fake page views,&#8221; (which was the only way to do this kind of tracking until fairly recently), but decided instead to use the new Event Tracking API.  This has several advantages, the biggest of which is that treating these events as page views actually skews your page view stats (e.g. an outbound link shouldn&#8217;t count as a page view).   IOW, apparently Events are now considered the &#8220;best practice&#8221; way to do this kind of stuff.     Give it a whirl and let us know what you think!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Davis</title>
		<link>http://jstahl.org/archives/2010/05/13/external-link-tracking-and-more-in-plone-with-google-analytics/comment-page-1/#comment-395783</link>
		<dc:creator>Joel Davis</dc:creator>
		<pubDate>Thu, 13 May 2010 23:53:53 +0000</pubDate>
		<guid isPermaLink="false">http://jstahl.org/?p=2262#comment-395783</guid>
		<description>&lt;p&gt;Jon, Great stuff!
I&#039;m sure Matt has already considered something like this, but here&#039;s some javascript code I used for a client a while back.  It tracks outgoing links as a hit to a pseudo page page on your site, rather than an event. Submitted for what it&#039;s worth...
[code]
$(function() {
    // make external links open in a new window and trackable in Google Analytics 
    $(&quot;a[href^=&#039;http&#039;]:not([href*=&#039;&quot;+location.hostname+&quot;&#039;])&quot;)
        .addClass(&#039;external&#039;)
        .attr(&#039;target&#039;, &#039;_blank&#039;)
        .click(function(){
            pageTracker._trackPageview(&#039;/outgoing/&#039;+ $(this).attr(&#039;href&#039;));
        });
});
[/code]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jon, Great stuff!<br />
I&#8217;m sure Matt has already considered something like this, but here&#8217;s some javascript code I used for a client a while back.  It tracks outgoing links as a hit to a pseudo page page on your site, rather than an event. Submitted for what it&#8217;s worth&#8230;<br />
[code]<br />
$(function() {<br />
    // make external links open in a new window and trackable in Google Analytics<br />
    $("a[href^='http']:not([href*='"+location.hostname+"'])")<br />
        .addClass('external')<br />
        .attr('target', '_blank')<br />
        .click(function(){<br />
            pageTracker._trackPageview('/outgoing/'+ $(this).attr('href'));<br />
        });<br />
});<br />
[/code]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

