<?xml version="1.0" encoding="utf-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Yoast &#187; Analytics</title> <atom:link href="http://yoast.com/cat/analytics/feed/" rel="self" type="application/rss+xml" /><link>http://yoast.com</link> <description>Tweaking Websites</description> <lastBuildDate>Mon, 14 May 2012 12:37:38 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.4-beta4-20725</generator> <image><title>Yoast</title> <url>http://yoast.com/wp-content/themes/yoast-v2/images/yoast-logo-rss.png</url><link>http://yoast.com</link> <width>144</width> <height>103</height> <description>Tweaking Websites</description> </image><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Tracking Outbound / Affiliate Links with getClicky</title><link>http://yoast.com/tracking-outbound-affiliate-links-with-getclicky/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tracking-outbound-affiliate-links-with-getclicky</link> <comments>http://yoast.com/tracking-outbound-affiliate-links-with-getclicky/#comments</comments> <pubDate>Thu, 26 Jan 2012 10:30:09 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[Affiliate Marketing]]></category> <category><![CDATA[Clicky]]></category><guid
isPermaLink="false">http://yoast.com/?p=45204</guid> <description><![CDATA[<p>I use Clicky for most of my day-to-day tracking and analysis, only using Google Analytics for the harder analyses. One of the things Clicky can do most wonderfully is track outbound clicks. There's an issue however when you start routing your affiliate links through a script or on-site redirect. I redirect mine through /out/ here [...]</p><p><a
href="http://yoast.com/tracking-outbound-affiliate-links-with-getclicky/">Tracking Outbound / Affiliate Links with getClicky</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p><img
class="alignright size-full wp-image-5941" title="Clicky web analytics" src="http://cdn3.yoast.com/wp-content/uploads/2011/06/clicky-web-analytics.gif" alt="Clicky web analytics" width="148" height="56" />I use <a
class="track clicky_log_outbound" href="http://yoast.com/out/clicky/">Clicky</a> for most of my day-to-day tracking and analysis, only using Google Analytics for the harder analyses. One of the things Clicky can do most wonderfully is track outbound clicks. There's an issue however when you start routing your affiliate links through a script or on-site redirect. I redirect mine through /out/ here on yoast.com, but not all of the /out/ links need to be tracked. Let me show you how I <em>do</em> track the ones I need to track.</p><h2>Forcing Clicky to track a link as outbound</h2><p>First of all, you need to know that when you add a class <code>clicky_log_outbound</code> to a link, Clicky will track each click on that link as an outbound link. Now I always add a class <code>track</code> or <code>aff</code> to my affiliate links that I want to have tracked, for instance:</p><pre class="brush: xml; title: ; notranslate">&lt;a class=&quot;track&quot; href=&quot;http://yoast.com/out/clicky/&quot;&gt;Clicky&lt;/a&gt;</pre><p>Of course I could manually add the clicky_log_outbound class, but that's just a tad bit too much work, especially as most of my links have been "classed" already and I might want to use this class for other stuff later on.</p><p>Now, I add a tiny filter function to my sites <em>functions.php</em> file, this searches for links with class <code>aff</code> or <code>track</code> and adds the <code>clicky_log_outbound</code> class:</p><pre class="brush: php; title: ; notranslate">function clicky_outbound_filter( $content ) {
	$content = preg_replace('/&lt;a([^&gt;]+)?class=&quot;(aff|track)&quot;([^&gt;]+)?&gt;/',
		'&lt;a\1class=&quot;\2 clicky_log_outbound&quot;\3&gt;', $content);
	return $content;
}

add_filter( 'the_content', 'clicky_outbound_filter', 10, 1 );</pre><p>That's it! Clicky will now track those links as outbound. Now let's set such a link up as a goal.</p><h2>Goal Tracking in Clicky</h2><p>For goal tracking you need to have a premium (read, paid) Clicky account, but it's well worth it. Setting up a goal is a piece of cake. You go to your site's analytics and then to Goals, Setup. You'll see this interface:</p><p><img
class="aligncenter size-full wp-image-45207" title="Clicky goal tracking" src="http://cdn3.yoast.com/wp-content/uploads/2012/01/clicky-goal-tracking.png" alt="Clicky goal tracking" width="499" height="596" /></p><p>You simply name the action, set the goal URL to be your outbound URL, you could do /out/clicky/ or, when you sometimes forget the last slash, /out/clicky*. You can set up revenue and even a funnel, a required page before one can reach that goal.</p><p>Once you've done that, the goals will show, in realtime, in your Goals overview and in your "bigscreen" Clicky display.</p><h2>More tracking power: campaigns</h2><p>This feature becomes even more powerful when you combine it with another great feature of Clicky; campaign tracking. Clicky fully supports the _utm type variables Google Analytics uses, so you can track campaigns and terms within campaigns. That is, in fact, how I did the tracking in yesterdays post about <a
title="On WordPress Dashboard Widgets" href="http://yoast.com/wordpress-dashboard-widgets/">WordPress Dashboard widgets</a>.</p><p><a
href="http://yoast.com/tracking-outbound-affiliate-links-with-getclicky/">Tracking Outbound / Affiliate Links with getClicky</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/tracking-outbound-affiliate-links-with-getclicky/feed/</wfw:commentRss> <slash:comments>17</slash:comments> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2011/06/clicky-web-analytics-125x56.gif" /> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2011/06/clicky-web-analytics.gif" medium="image"> <media:title type="html">Clicky web analytics</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2011/06/clicky-web-analytics-125x56.gif" /> </media:content> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2012/01/clicky-goal-tracking.png" medium="image"> <media:title type="html">Clicky goal tracking</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2012/01/clicky-goal-tracking-125x125.png" /> </media:content> </item> <item><title>Clicky Analytics (getClicky) Review: clean, simple, effective</title><link>http://yoast.com/clicky-analytics-review/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=clicky-analytics-review</link> <comments>http://yoast.com/clicky-analytics-review/#comments</comments> <pubDate>Sat, 25 Jun 2011 22:20:10 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[Clicky]]></category><guid
isPermaLink="false">http://yoast.com/?p=5934</guid> <description><![CDATA[<p>In my post last week about social buttons, I included code samples for Clicky Analytics. I got some emails asking me why I use Clicky and Google Analytics alongside each other. In this review I want to show you some of the cool features I use from Clicky Analytics (aka getClicky) that make me use [...]</p><p><a
href="http://yoast.com/clicky-analytics-review/">Clicky Analytics (getClicky) Review: clean, simple, effective</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>In my post last week about <a
title="Social Buttons: Adding them to your site &amp; Tracking them" href="http://yoast.com/social-buttons/">social buttons</a>, I included code samples for Clicky Analytics. I got some emails asking me why I use <a
class="aff clicky_log_outbound" href="http://yoast.com/out/clicky/">Clicky</a> and Google Analytics alongside each other. In this review I want to show you some of the cool features I use from Clicky Analytics (aka getClicky) that make me use it a lot, actually probably just as much if not more than Google Analytics.</p><p>Let me go over some of the features of Clicky Analytics:</p><h2>The Clicky Dashboard</h2><p>More than any other affordable analytics package, the dashboard for Clicky shows me what's happening on my site <em>now</em>. Nothing really fancy, but it just works and measures what it's supposed to measure. Check out this example:</p><p><a
class="thickbox" rel="clicky" href="http://cdn.yoast.com/wp-content/uploads/2011/06/clicky-dashboard.jpg"><img
class="alignright size-large wp-image-5937" title="clicky analytics dashboard" src="http://cdn.yoast.com/wp-content/uploads/2011/06/clicky-dashboard-590x415.jpg" alt="clicky analytics dashboard" width="580" height="407" /></a></p><h2>Clicky Analytics Spy</h2><p>If the dashboard isn't realtime enough for you, the Clicky spy feature gives a very simple but cool AJAXified overview of the traffic coming in to your site:</p><p><a
class="thickbox" rel="clicky" href="http://cdn3.yoast.com/wp-content/uploads/2011/06/clicky-spy-feature.jpg"><img
src="http://cdn2.yoast.com/wp-content/uploads/2011/06/clicky-spy-feature-590x424.jpg" alt="Clicky Analytics Spy feature" title="Clicky Analytics Spy feature" width="580" height="416" class="alignright size-large wp-image-5938" /></a></p><h2>Their API</h2><p>Clicky allows you to insert data into it by using their internal data logging API. My <a
href="http://wordpress.org/extend/plugins/clicky/">Clicky WordPress plugin</a> uses this feature to store comments. Instead of having to do the "unreliable" thing I have to do in Google Analytics: adding an onclick handler to the submit comment button, I can just do a request to the Clicky servers when the comment is inserted into the database, which gives cool stuff like this:</p><p><a
class="thickbox" rel="clicky" href="http://cdn3.yoast.com/wp-content/uploads/2011/06/clicky-posted-comment.jpg"><img
src="http://cdn2.yoast.com/wp-content/uploads/2011/06/clicky-posted-comment-590x387.jpg" alt="" title="clicky posted comment" width="580" height="380" class="alignright size-large wp-image-5939" /></a></p><p>Once someone leaves a comment, the plugin is also able, using the cookie that WordPress sets once you make a comment, to track the visitor by name, so if they come back, you'll know exactly who it is. This feature (the API as well as the goal part) requires a Pro account, which leads me to the next advantage: <a
class="aff clicky_log_outbound" href="http://yoast.com/out/clicky/#/help/pricing">its pricing</a> (aff link). You can do up to 30k pageviews per day in an account that costs $60 a year. That's serious value for money if you compare it to <em>any</em> other paid analytics package.</p><h2>How about speed?</h2><p>In the past, Clicky Analytics  had some performance issues from time to time. Recently they've been improving a lot though, with their latest move being to move to a truly global CDN for their tracking scripts. Today I updated the Clicky WP plugin for that which also reminded me I should really write this post.</p><h2>Is that all?</h2><p>No, there's more, with a Pro account, Clicky will also pick up data from Google Analytics campaign variables, do video analytics and all sorts of other neat stuff. There really are a lot more features in Clicky Analytics, but to be honest, I don't use them as much as I probably should. All my more hardcore analysis is done in Google Analytics, as I like that interface more for doing such analyses. However, for a quick overview of your site, you can't really go wrong with Clicky. Like it too? <a
class="aff clicky_log_outbound" href="http://yoast.com/out/clicky/">Get it now</a>. And yes, that's an affiliate link, but trust me, I'd be much better of promoting a far more expensive solution :).</p><p><a
href="http://yoast.com/clicky-analytics-review/">Clicky Analytics (getClicky) Review: clean, simple, effective</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/clicky-analytics-review/feed/</wfw:commentRss> <slash:comments>18</slash:comments> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2011/06/clicky-dashboard-125x125.jpg" /> <media:content url="http://cdn.yoast.com/wp-content/uploads/2011/06/clicky-dashboard.jpg" medium="image"> <media:title type="html">clicky analytics dashboard</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2011/06/clicky-dashboard-125x125.jpg" /> </media:content> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2011/06/clicky-spy-feature.jpg" medium="image"> <media:title type="html">Clicky Analytics Spy feature</media:title> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2011/06/clicky-spy-feature-125x125.jpg" /> </media:content> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2011/06/clicky-posted-comment.jpg" medium="image"> <media:title type="html">clicky posted comment</media:title> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2011/06/clicky-posted-comment-125x125.jpg" /> </media:content> </item> <item><title>Social Buttons: Adding them to your site &amp; Tracking them</title><link>http://yoast.com/social-buttons/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=social-buttons</link> <comments>http://yoast.com/social-buttons/#comments</comments> <pubDate>Thu, 23 Jun 2011 20:48:20 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Clicky]]></category> <category><![CDATA[Facebook]]></category> <category><![CDATA[Google Analytics]]></category> <category><![CDATA[Social Media]]></category> <category><![CDATA[Twitter]]></category> <category><![CDATA[WordPress Plugins]]></category><guid
isPermaLink="false">http://yoast.com/?p=5866</guid> <description><![CDATA[<p>I've had a lot of questions recently (like literally, several a day) on how I implemented the social buttons in WordPress, whether I was using a plugin or using a theme. First of all I'm glad to see all of you noticing my social buttons section so much. Second, I'd love to share with you [...]</p><p><a
href="http://yoast.com/social-buttons/">Social Buttons: Adding them to your site &#038; Tracking them</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>I've had a lot of questions recently (like literally, several a day) on how I implemented the social buttons in WordPress, whether I was using a plugin or using a theme. First of all I'm glad to see all of you noticing my social buttons section so much. Second, I'd love to share with you how I built this, because I actually made it load nice and fast too and would love for you to have that.</p><p>In full "shape" my social buttons look like this:</p><p><img
class="aligncenter size-full wp-image-5868" title="social buttons in WordPress" src="http://cdn.yoast.com/wp-content/uploads/2011/06/social-buttons-in-wordpress.png" alt="social buttons in WordPress" width="572" height="66" /></p><p>There are several plugins that do social buttons in WordPress. As a lot of you may know, I used to maintain a plugin called Sociable back in the day when social buttons where all still 16x16, simple, buttons. At some point, I think it was Digg that introduced the script based social button with a counter in it, which was later on adopted by several social sites. To date, there are many many social bookmarking sites that have widgets like these. Not every site needs all of these social buttons. I picked the 5 that work for me, your mileage may vary.</p><h2>How did you implement these social buttons in WordPress?</h2><p>I hear you thinking "get on with it already". Ok ok ok. Here we go. It's not a plugin. It's in my theme. Which doesn't mean it couldn't be a plugin, it's just that it'd be pretty hard to embed them in my site as sweet as these social buttons are embedded right now, using a plugin.</p><p>So they're in my theme. As you can guess, the buttons themselves are a <a
href="http://yoast.com/wordpress-template-part/">template part</a>. This template part is actually rather small and simple, it looks like this (line breaks added for readability):</p><pre class="brush: php; html-script: true; title: ; notranslate">&lt;ul class=&quot;social buttons&quot;&gt;
  &lt;li&gt;
    &lt;fb:like href=&quot;&lt;?php the_permalink() ?&gt;&quot; send=&quot;true&quot; 
      showfaces=&quot;false&quot; width=&quot;120&quot; layout=&quot;button_count&quot; 
      action=&quot;like&quot;/&gt;
  &lt;/fb:like&gt;&lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;http://twitter.com/share&quot; data-url=&quot;&lt;?php the_permalink(); ?&gt;&quot; 
      data-text=&quot;&lt; ?php the_title(); ?&gt;&quot; data-via=&quot;yoast&quot; 
      class=&quot;twitter-share-button&quot;&gt;Tweet&lt;/a&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;g:plusone size=&quot;medium&quot; callback=&quot;plusone_vote&quot;&gt;&lt;/g:plusone&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;script type=&quot;in/share&quot; data-url=&quot;&lt;?php the_permalink(); ?&gt;&quot; 
      data-counter=&quot;right&quot;&gt;&lt;/script&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;div id=&quot;stumbleupon-button&quot;&gt;&lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;</pre><p>As you can see, these are the "regular" buttons for most of these services, with that exception that all of them are lacking the script tag. Back in february, Frederick did an awesome post on his blog about <a
href="http://www.w3-edge.com/weblog/2011/02/optimize-social-media-button-performance/">optimizing the performance of widgets &amp; buttons</a>. I used the knowledge in this post, but took it a few steps further.</p><h2>Loading these Social Buttons script files</h2><p>Let's start with Facebook. Their asynchronous code works quite well. First, make sure you have a <code>fb-root div</code>:</p><pre class="brush: php; html-script: true; light: true; title: ; notranslate">&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;</pre><p>Then load the JavaScript, (all of the code samples below should be within <code>&lt;script&gt;</code> tags):</p><pre class="brush: jscript; title: ; notranslate">
window.fbAsyncInit = function() {
  FB.init({appId: '&lt;APPID&gt;', status: true, cookie: true, xfbml: true});
};
(function() {
  var e = document.createElement('script');
  e.type = 'text/javascript';
  e.src = document.location.protocol +
     '//connect.facebook.net/en_US/all.js';;
  e.async = true;
  document.getElementById('fb-root').appendChild(e);
}());</pre><p>This loads the Facebook JS once the page load is done, which works quite nice and then loads the app. Later on we'll be adding code to track all the interaction with the Facebook buttons, but let's load some other social buttons first.</p><p>The other scripts I'm going to load using jQuery. Not only do I load them asynchronously, I only start loading them when the page has actually already completed rendering. The code to do that for the Twitter share button looks like this:</p><pre class="brush: jscript; title: ; notranslate">jQuery(document).ready(function($) {
  // Load Tweet Button Script
  var e = document.createElement('script'); 
  e.type=&quot;text/javascript&quot;; e.async = true; 
  e.src = 'http://platform.twitter.com/widgets.js';
  document.getElementsByTagName('head')[0].appendChild(e);
}</pre><p>And LinkedIn, Google's +1 and StumbleUpon's buttons work in the same way:</p><pre class="brush: jscript; title: ; notranslate">jQuery(document).ready(function($) {
  // Load LinkedIn button
  var e = document.createElement('script'); 
  e.type=&quot;text/javascript&quot;; e.async = true; 
  e.src = 'http://platform.linkedin.com/in.js';
  document.getElementsByTagName('head')[0].appendChild(e);
  // Load Plus One Button
  var e = document.createElement('script'); 
  e.type=&quot;text/javascript&quot;; e.async = true; 
  e.src = 'https://apis.google.com/js/plusone.js';
  document.getElementsByTagName('head')[0].appendChild(e);
  // Load StumbleUpon button
  var e = document.createElement('script'); 
  e.type=&quot;text/javascript&quot;; e.async = true; 
  e.src = 
  'http://www.stumbleupon.com/hostedbadge.php?s=1&amp;a=1&amp;d=stumbleupon-button';
  document.getElementsByTagName('head')[0].appendChild(e);
}</pre><p>You could even simplify this further by just making it an array and looping through it, but for readability's sake I didn't do that.</p><h2>Tracking Interaction with Social Buttons</h2><p>When Google released +1, I quickly identified <a
href="http://yoast.com/plus-one-google-analytics/">how to track interaction with that button</a>. The obvious "follow up" was questions from people on how to track interaction with other buttons. Not for each of these social buttons tracking of interaction is actually possible. It depends on how the button was designed whether this will work or not. I got it working for Twitter and Facebook, so I'll share the code for tracking interaction with their respective social buttons below.</p><p>For Facebook, it's pretty well documented around the web how you can track the interaction with their buttons. I played around a bit and came up with the following implementation, which tracks the interaction with my like &#038; send buttons <em>and</em> with the big like box on the right. It tracks the interaction in both Google Analytics and <a
href="http://yoast.com/out/getclicky/">getClicky</a>.</p><p>Instead of just the above <code>FB.init</code> line, we'll do the following:</p><pre class="brush: jscript; title: ; notranslate">window.fbAsyncInit = function() {
  FB.init({appId: '&lt;APPID&gt;', status: true, cookie: true, xfbml: true});
  FB.Event.subscribe(&quot;edge.create&quot;,function(response) {
    if (response.indexOf(&quot;facebook.com&quot;) &gt; 0) {
      // if the returned link contains 'facebook,com'. It is a 'Like' 
      // for your Facebook page
      _gaq.push(['_trackEvent','Facebook','Like',response]);
      clicky.log(response,'Facebook Like Facebook Page');
    } else {
      // else, somebody is sharing the current page on their wall
      _gaq.push(['_trackEvent','Facebook','Share',response]);
      clicky.log(response,'Facebook Like / Share Post');
    }
  });
  FB.Event.subscribe(&quot;message.send&quot;,function(response){
    _gaq.push(['_trackEvent','Facebook','Send',response]);
    clicky.log(response,'Facebook Send Post');
  });
};</pre><p>As you can see, if you can read a bit of code, this will create different events for each of the different optional actions. Now, let's do the same for the Tweet button (using examples based on <a
href="http://dev.twitter.com/pages/intents-events">their docs</a>, but switched to async):</p><pre class="brush: jscript; title: ; notranslate">// Load Tweet Button Script &amp; Associate Google Analytics Tracking
var e = document.createElement('script'); 
e.type=&quot;text/javascript&quot;; e.async = true; 
e.src = 'http://platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(e);
$(e).load(function() {
  function tweetIntentToAnalytics(intent_event) {
    if (intent_event) {
      var label = intent_event.data.tweet_id;
      _gaq.push(['_trackEvent', 'twitter_web_intents', 
	    intent_event.type, label]);
      clicky.log(document.location.href,'Twitter '+label);
    }      
  }       
  function followIntentToAnalytics(intent_event) {
    if (intent_event) {
      var label = intent_event.data.user_id + &quot; (&quot; + 
	   intent_event.data.screen_name + &quot;)&quot;;
      _gaq.push(['_trackEvent', 'twitter_web_intents', 
	   intent_event.type, label]);
      clicky.log(document.location.href,'Twitter '+label);
    }    
  }       
  twttr.events.bind('tweet',    tweetIntentToAnalytics);
  twttr.events.bind('follow',   followIntentToAnalytics);
});</pre><p>LinkedIn has an API for these things, at least, <a
href="http://developer.linkedin.com/docs/DOC-1291">it has documentation</a> for it, but it doesn't work in my testing and quite a few people are complaining on LinkedIn's developer forums as well. For StumbleUpon there's no documentation to be found and it doesn't seem to be possible at this time to track interaction with their social button.</p><p>All of this is pretty geeky, I know, but there's a lot of value in both implementing these social buttons in a good and fast way and measuring all these interactions. Seeing which sort of social buttons work for which types of traffic can really help you find what you should be optimizing how.</p><p><a
href="http://yoast.com/social-buttons/">Social Buttons: Adding them to your site &#038; Tracking them</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/social-buttons/feed/</wfw:commentRss> <slash:comments>58</slash:comments> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2011/06/social-buttons-in-wordpress-125x66.png" /> <media:content url="http://cdn.yoast.com/wp-content/uploads/2011/06/social-buttons-in-wordpress.png" medium="image"> <media:title type="html">social buttons in WordPress</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2011/06/social-buttons-in-wordpress-125x66.png" /> </media:content> </item> <item><title>Tracking Google +1 button Interaction in Google Analytics</title><link>http://yoast.com/plus-one-google-analytics/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=plus-one-google-analytics</link> <comments>http://yoast.com/plus-one-google-analytics/#comments</comments> <pubDate>Wed, 01 Jun 2011 19:09:16 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[Google Analytics]]></category><guid
isPermaLink="false">http://yoast.com/?p=4381</guid> <description><![CDATA[<p>Today Google introduced the new +1 button, which I of course immediately implemented (see below and, on this specific post, on the right). It comes with an option for a callback function that you can use to track interaction with that button in Google Analytics. The implementation is pretty easy so let's go ahead and [...]</p><p><a
href="http://yoast.com/plus-one-google-analytics/">Tracking Google +1 button Interaction in Google Analytics</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p><div
class="alignright"><g:plusone size="tall" callback="plusone_vote"></g:plusone></div>Today Google <a
href="http://googlewebmastercentral.blogspot.com/2011/06/add-1-to-help-your-site-stand-out.html">introduced the new +1 button</a>, which I of course immediately implemented (see below and, on this specific post, on the right). It comes with an option for a callback function that you can use to track interaction with that button in Google Analytics. The implementation is pretty easy so let's go ahead and explain it. First of all, you place the required script tag somewhere, preferably in the footer before the <code>&lt;/body&gt;</code>:</p><pre class="brush: xml; light: true; title: ; notranslate">&lt;script type=&quot;text/javascript&quot; src=&quot;http://apis.google.com/js/plusone.js&quot;&gt;&lt;/script&gt;</pre><p>Then you create your +1 button using Google's <a
href="http://www.google.com/webmasters/+1/button/">creation tool</a>. On this creation tool you click on "Advanced options" and then add <code>plusone_vote</code> as callback. You'll get something like this:</p><p><img
class="aligncenter size-full wp-image-4387" title="Google +1 button code" src="http://cdn.yoast.com/wp-content/uploads/2011/06/Google-plus-one.png" alt="Google +1 button code" width="580" height="362" /></p><p>And the code is like this:</p><pre class="brush: xml; light: true; title: ; notranslate">&lt;g:plusone size=&quot;tall&quot; callback=&quot;plusone_vote&quot;&gt;&lt;/g:plusone&gt;</pre><p>Last but not least, below the script tag for Google +1 we added above, you add this tiny bit of script. This function records the vote as an event in Google Analytics, and stores the state ("on" for a +1 vote, "off" for the removal off a vote):</p><pre class="brush: xml; title: ; notranslate">&lt;script type=&quot;text/javascript&quot;&gt;
  function plusone_vote( obj ) {
    _gaq.push(['_trackEvent','plusone',obj.state]);
  }
&lt;/script&gt;</pre><p>Of course I haven't been able to do anything with the results from this yet, but it would be cool to see which kind of traffic uses +1 buttons, and whether a lot of +1's correlate with a lot of search traffic afterwards.</p><p><strong>Update:</strong> might be fun to show you that this post was ranking quite fast with a nice +1 underlining:<br
/> <img
src="http://cdn2.yoast.com/wp-content/uploads/2011/06/google-plus-one-google-analytics-Google-Search.png" alt="google plus one google analytics" title="google plus one google analytics" width="622" height="189" class="aligncenter size-full wp-image-4390" /></p><p><a
href="http://yoast.com/plus-one-google-analytics/">Tracking Google +1 button Interaction in Google Analytics</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/plus-one-google-analytics/feed/</wfw:commentRss> <slash:comments>112</slash:comments> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2011/06/Google-plus-one-125x125.png" /> <media:content url="http://cdn.yoast.com/wp-content/uploads/2011/06/Google-plus-one.png" medium="image"> <media:title type="html">Google +1 button code</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2011/06/Google-plus-one-125x125.png" /> </media:content> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2011/06/google-plus-one-google-analytics-Google-Search.png" medium="image"> <media:title type="html">google plus one google analytics</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2011/06/google-plus-one-google-analytics-Google-Search-125x125.png" /> </media:content> </item> <item><title>Site Speed tracking in Google Analytics</title><link>http://yoast.com/site-speed-tracking-in-google-analytics/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=site-speed-tracking-in-google-analytics</link> <comments>http://yoast.com/site-speed-tracking-in-google-analytics/#comments</comments> <pubDate>Mon, 09 May 2011 12:38:25 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Google Analytics]]></category> <category><![CDATA[Site Speed]]></category> <category><![CDATA[WordPress Plugins]]></category><guid
isPermaLink="false">http://yoast.com/?p=4164</guid> <description><![CDATA[<p>Just a quickie: I just updated my Google Analytics for WordPress plugin to incorporate the new Site Speed tracking feature that Google announced last week. The feature is on by default and can be disabled in the advanced section of the settings. As you can see from the announcement post, this new feature helps you [...]</p><p><a
href="http://yoast.com/site-speed-tracking-in-google-analytics/">Site Speed tracking in Google Analytics</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p><a
href="http://yoast.com/wordpress/google-analytics/"><img
src="http://cdn3.yoast.com/wp-content/uploads/2007/09/GAfW-565-161-300x74.png" alt="Google Analytics for WordPress" title="Google Analytics for WordPress" width="300" height="74" class="alignright size-medium wp-image-2966" /></a>Just a quickie: I just updated my <a
href="http://yoast.com/wordpress/google-analytics/">Google Analytics for WordPress</a> plugin to incorporate the new Site Speed tracking feature that <a
href="http://analytics.blogspot.com/2011/05/measure-page-load-time-with-site-speed.html">Google announced</a> last week. The feature is on by default and can be disabled in the advanced section of the settings.</p><p>As you can see from the announcement post, this new feature helps you determine questions like:</p><ul><li>Which landing pages are slowest?</li><li>How does page load time vary across geographies?</li><li>Does your site load faster or slower for different browsers?</li></ul><p><img
alt="Site Speed report in Google Analytics" src="http://4.bp.blogspot.com/-RoXO31TXnJE/TcCHhjJbQuI/AAAAAAAABNk/So-Ra5CM6Dc/s400/galt_blog.png" title="Site Speed report in Google Analytics" class="aligncenter" width="400" height="246" /></p><p>You'll be able to find the results from this tracking under Content &rarr; Site Speed in Google Analytics. This release also fixes the slight error with the custom code option, that's now properly stripped from slashes.</p><p><a
href="http://yoast.com/site-speed-tracking-in-google-analytics/">Site Speed tracking in Google Analytics</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/site-speed-tracking-in-google-analytics/feed/</wfw:commentRss> <slash:comments>23</slash:comments> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2007/09/GAfW-565-161-125x125.png" /> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2007/09/GAfW-565-161.png" medium="image"> <media:title type="html">Google Analytics for WordPress</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2007/09/GAfW-565-161-125x125.png" /> </media:content> <media:content url="http://4.bp.blogspot.com/-RoXO31TXnJE/TcCHhjJbQuI/AAAAAAAABNk/So-Ra5CM6Dc/s400/galt_blog.png" medium="image"> <media:title type="html">Site Speed report in Google Analytics</media:title> </media:content> </item> <item><title>Event tracking, bounce rate and affiliate marketing</title><link>http://yoast.com/event-tracking-bounce-rate/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=event-tracking-bounce-rate</link> <comments>http://yoast.com/event-tracking-bounce-rate/#comments</comments> <pubDate>Sun, 17 Oct 2010 21:05:32 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[Affiliate Marketing]]></category> <category><![CDATA[Google Analytics]]></category><guid
isPermaLink="false">http://yoast.com/?p=3409</guid> <description><![CDATA[<p>Apparently, the way event tracking tracking works in Analytics, and how it impacts bounce rate, is still not understood as widely as I expected it to be, and I'm not the only one to think that. So let me explain to you how bounce rate is influenced by (properly set up) event tracking, and how to [...]</p><p><a
href="http://yoast.com/event-tracking-bounce-rate/">Event tracking, bounce rate and affiliate marketing</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p><img
class="alignright size-full wp-image-3411" title="Bounce Rate and Event Tracking" src="http://cdn2.yoast.com/wp-content/uploads/2010/10/bounce-question-mark-e1287349079216.jpg" alt="Bounce Rate and Event Tracking" width="200" height="200" />Apparently, the way event tracking tracking works in Analytics, and how it impacts bounce rate, is still not understood as widely as I expected it to be, and I'm <a
href="http://twitter.com/richardbaxter/status/27488364519">not the only one to think that</a>. So let me explain to you how bounce rate is influenced by (properly set up) event tracking, and how to do that setup.</p><h2>How event tracking influences bounce rate</h2><p>My buddy <a
href="http://kaushik.net/avinash/">Avinash</a> tweeted a link to <a
href="http://www.bruceclay.com/blog/2010/10/four-questions-avinash-kaushik/comment-page-1/#comment-34236">a comment</a> he left on a post that's actually <a
href="http://www.bruceclay.com/blog/2010/10/four-questions-avinash-kaushik/">an interview with him on the Bruce Clay blog</a>. In the comment he talks about for whom bounce rate is a good metric. Michael Gray, an "old time" SEO and affiliate, who apparently hasn't learned much about analytics in all that time ( just kidding Michael ;) ), <a
href="http://twitter.com/graywolf/status/27477462274">tweeted</a>:</p><blockquote><p>"As an affiliate or adsense publisher I want u to come and leave as quickly as possible how is that not a bounce."</p></blockquote><p>Let me state this very clearly: <strong>it is not a bounce</strong>. A bounce is a visit to your website that doesn't result in a second pageview or a desired action. If you're an affiliate, the outbound click might very well be your desired action. To be able to properly optimize your campaigns, you <em>should</em> track these outbound clicks. The "proper" way to do that is to either track them as pageviews, with the benefit of being able to tag them as goals but with the disadvantage of inflating pageviews, or as an event.</p><p>Or, as the <a
href="http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html#implementationConsiderations">Google Analytics documentation</a> describes it:</p><blockquote><p>"[...] a "bounce" is described as a single-page visit to your site. In Analytics, a bounce is calculated specifically as a session that triggers only a single GIF request, such as when a user comes to a single page on your website and then exits without causing any other request to the Analytics server for that session."</p></blockquote><p>So, if you track your outbound affiliate clicks as events they wouldn't counted as a bounce. This way, these outbound clicks would be counted as a separate action, making the visit into a "non bounce" or, which is maybe a better name, an "engaged visit". This is independent of whether you use Google Analytics or another package, you could for instance use <a
href="http://yoast.com/out/clicky/">Clicky</a>, a very good alternative for those of you with tin foil hats.</p><h2>How to implement event tracking for affiliate links</h2><p>In the examples below I'll assume you've properly <a
href="http://yoast.com/affiliate-links-and-seo/">hidden your affiliate links</a> with a redirect:</p><h3>Google Analytics</h3><p>For those of you who use Google Analytics and are not smart enough to use WordPress and my <a
href="http://yoast.com/wordpress/google-analytics/">Google Analytics plugin</a>, you should be tagging your outbound affiliate links in a way similar to this:</p><pre class="brush: php; html-script: true; title: ; notranslate">&lt;a href=&quot;http://yoast.com/out/vps/&quot;
  onclick=&quot;javascript:_gaq.push(['_trackEvent','aff','/out/vps/']);&quot;&gt;
  VPS.net
&lt;/a&gt;</pre><p>This example uses the <a
href="http://code.google.com/apis/analytics/docs/tracking/asyncUsageGuide.html">asynchronous tracking</a> method, if you want reliable tracking of outbound clicks like this, you should be using that, as it's a lot more reliable than the old synchronous method.</p><h3>Clicky</h3><p>In Clicky outbound link tracking of links like this is <a
href="http://getclicky.com/help/customization#csstags">ridiculously simple</a>, you don't even have to know javascript:</p><pre class="brush: php; html-script: true; title: ; notranslate">&lt;a class=&quot;clicky_log_outbound&quot; href=&quot;/out/vps/&quot;&gt;
  VPS.net
&lt;/a&gt;</pre><h2>Conclusion</h2><p>In conclusion: please don't think you have a high bounce rate <em>because</em> you have an affiliate site. You have to tag your links properly, if you want to do serious analysis. The minute you do, you should be seeing these clicks appear in your analytics and your bounce rate go down, and you no longer have to claim visits that aren't bounces as bounces.</p><p><a
href="http://yoast.com/event-tracking-bounce-rate/">Event tracking, bounce rate and affiliate marketing</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/event-tracking-bounce-rate/feed/</wfw:commentRss> <slash:comments>36</slash:comments> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2010/10/bounce-question-mark-e1287349079216-125x125.jpg" /> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2010/10/bounce-question-mark-e1287349079216.jpg" medium="image"> <media:title type="html">bounce-question-mark</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2010/10/bounce-question-mark-e1287349079216-125x125.jpg" /> </media:content> </item> <item><title>Google Analytics for WordPress gets a debug mode</title><link>http://yoast.com/google-analytics-debug-mode/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=google-analytics-debug-mode</link> <comments>http://yoast.com/google-analytics-debug-mode/#comments</comments> <pubDate>Thu, 26 Aug 2010 13:04:13 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Google Analytics]]></category> <category><![CDATA[WordPress Plugins]]></category><guid
isPermaLink="false">http://yoast.com/?p=2958</guid> <description><![CDATA[<p>With the wider introduction of the ga_debug.js script (Google Analytics Certified Partners had had access to that for a while so I'd been using it already); I finally had the chance to add a real debug mode to my Google Analytics plugin. Since the debug script uses the console to display its information, I also [...]</p><p><a
href="http://yoast.com/google-analytics-debug-mode/">Google Analytics for WordPress gets a debug mode</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>With the <a
href="http://analytics.blogspot.com/2010/08/new-tools-to-debug-your-tracking-code.html">wider introduction</a> of the <em>ga_debug.js</em> script (<a
href="http://www.google.com/intl/en/analytics/partners.html">Google Analytics Certified Partners</a> had had access to that for a while so I'd been using it already); I finally had the chance to add a real debug mode to my <a
href="http://yoast.com/wordpress/google-analytics/">Google Analytics plugin</a>.</p><p>Since the debug script uses the console to display its information, I also added the option to immediately load Firebug lite. See how it works in the following screencast (ow and enjoy my new screencast intro, I'll be doing loads more screencast in the coming months):</p><p><a
href="http://yoast.com/google-analytics-debug-mode/"><em>Click here to view the embedded video.</em></a></p><p><a
href="http://yoast.com/google-analytics-debug-mode/">Google Analytics for WordPress gets a debug mode</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/google-analytics-debug-mode/feed/</wfw:commentRss> <slash:comments>28</slash:comments> <media:content url="http://blip.tv/file/4048497" duration="83"> <media:player url="http://blip.tv/file/4048497" /> <media:title type="html">Google Analytics for WordPress Debug Mode - Yoast</media:title> <media:description type="html">With the wider introduction of the ga_debug.js script (Google Analytics Certified Partners had had access to that for a while so I&#039;d been using it already); I finally had the chance to add a real debug mode to my Google Analytics plugin. Since the debug script uses the console to display its informa</media:description> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2012/01/google-analytics-for-wordpress-debug-mode-yoast-300x168.png" /> <media:keywords>Google Analytics,WordPress Plugins,google analytics debug</media:keywords> </media:content> </item> <item><title>Google Analytics for WordPress reaches version 4</title><link>http://yoast.com/google-analytics-wordpress-v4/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=google-analytics-wordpress-v4</link> <comments>http://yoast.com/google-analytics-wordpress-v4/#comments</comments> <pubDate>Wed, 07 Jul 2010 11:55:18 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Google Analytics]]></category> <category><![CDATA[WordPress Plugins]]></category><guid
isPermaLink="false">http://yoast.com/?p=2799</guid> <description><![CDATA[<p>Google Analytics has gotten so many new features in the last year, that the only way I could incorporate those into my Google Analytics plugin, which has been downloaded times, was by doing an almost complete rewrite. That’s why today, I’m proud to announce version 4.0 of this plugin. What’s new with this Google Analytics [...]</p><p><a
href="http://yoast.com/google-analytics-wordpress-v4/">Google Analytics for WordPress reaches version 4</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>Google Analytics has gotten so many new features in the last year, that the only way I could incorporate those into my Google Analytics plugin, which has been downloaded 3,107,631 times, was by doing an almost complete rewrite. That’s why today, I’m proud to announce version 4.0 of this plugin.</p><h2>What’s new with this Google Analytics plugin?</h2><h3>Asynchronous tracking</h3><p>First of all, this new version 4.0 switches to the new asynchronous tracking method. This new tracking was also the reason it took a while to get this version out the door: there were quite a few bugs to work out; tracking by the beta was not reliable for a while.</p><p>What’s the advantage of the new tracking you ask? Why bother switching? Well, there are three reasons, as <a
href="http://googlecode.blogspot.com/2009/12/google-analytics-launches-asynchronous.html">listed by the Google Analytics blog</a>:</p><ul><li>Faster load times for your web pages due to improved browser execution of the tracking code.</li><li>Enhanced data collection &amp; accuracy.</li><li>Elimination of tracking errors from dependencies when the JavaScript hasn't fully loaded.</li></ul><p>If you want to know more about asynchronous scripts, check out <a
href="http://www.stevesouders.com/blog/2008/12/27/coupling-async-scripts/">this blog post by Steve Souders</a>, in which he explains the concept and what it means for page load times. The short version: a normal script blocks other objects on your page, like images, from being loaded until it has been fully loaded. An asynchronous script allows for those other objects to be downloaded at the same time.</p><h3>Custom Variables</h3><p>Google <a
href="http://analytics.blogspot.com/2009/10/google-analytics-now-more-powerful.html">launched</a> the custom variable support in October 2009, and I’ve been playing with ways to use these in tracking ever since. Custom variables are a way to add data about the current page, the current session or the current user in your tracking, which you can use for some very cool things.</p><p>I've been thinking and working with guys like my buddies <a
href="http://w3-edge.com/">Frederick Townes</a> and <a
href="http://cutroni.com/blog/">Justin Cutroni</a> about what you should and could be tracking. It wasn't easy, which is why I’m very proud to show you this settings panel:</p><div
id="attachment_2821" class="wp-caption aligncenter" style="width: 310px"><a
class="thickbox" title="Custom Variable settings" href="http://cdn3.yoast.com/wp-content/uploads/2010/07/google-analytics-configuration1.png"><img
src="http://cdn2.yoast.com/wp-content/uploads/2010/07/google-analytics-configuration1-300x292.png" alt="Google Analytics Configuration" title="Custom Variables settings" width="300" height="292" class="size-medium wp-image-2821" /></a><p
class="wp-caption-text">Google Analytics Custom Variables</p></div><p>As you can see in the screenshot, you can segment by:</p><ul><li><strong>Logged in users: </strong>speaks for itself, very useful on BuddyPress sites etc: where do people that are logged in go, where do others go. It stores the users primary user level in the variable, so you can even segment for just "subscribers". (There's an advanced option to ignore users of certain levels should you want to btw)</li><li><strong>Author name:</strong> track page views per author.</li><li><strong>Single category:</strong> if your posts are in only one category each, this allows you to track views per category.</li><li><strong>All categories:</strong> track multiple categories per post, a bit harder to view in Analytics, but could still be useful.</li><li><strong>Tags:</strong> track all tags for each post, has its limits but might be useful.</li><li><strong>Publication year:</strong> see what’s doing good and bad, more specifically whether your old posts are still getting traffic.</li><li><strong>Post type:</strong> especially with the new custom post type features in WordPress 3.0 this is very useful: if you’ve got movies, actors etc. set up as custom post types, this allows you to track how many page views each post type got.</li></ul><p>So you could run reports showing which authors do better, which categories and / or post types get more pageviews and so on. This will provide you with the kind of analysis you need to improve your blog. I hope you’re starting to get why I’m so excited about this release. But wait, there’s more.</p><h3>Google Analytics API integration</h3><p>Where in the past I'd ask you to enter your "UA ID" from the backend, you can now simply click a button, authenticate with Google Analytics, select the right account and then the right profile and start tracking! Check out how easy that is:</p><div
id="attachment_2805" class="wp-caption aligncenter" style="width: 310px"><a
class="thickbox" href="http://cdn3.yoast.com/wp-content/uploads/2010/07/google-analytics-configuration.png"><img
src="http://cdn.yoast.com/wp-content/uploads/2010/07/google-analytics-configuration-300x131.png" alt="Google Analytics Configuration" title="Google Analytics Configuration" width="300" height="131" class="size-medium wp-image-2805" /></a><p
class="wp-caption-text">Google Analytics Configuration</p></div><p>Of course you can still enter the UA ID by hand if you want to, just check the box in the lower left of the screenshot and you'll get an input box to enter the UA ID.</p><h3>E-Commerce integration</h3><p>This plugin now fully integrates with both <a
href="http://www.instinct.co.nz/e-commerce/">WP E-Commerce</a> and <a
href="http://shopplugin.net/">Shopp</a>: for both of these plugins it tracks sales using e-commerce tracking, allowing you to track where people that bought something came from, how they went about your site and which pages triggered them to buy.</p><p>All you have to do is install the plugin, and it'll automatically detect whether you're running one of these two plugins. You'll then get a box like this:</p><div
id="attachment_2824" class="wp-caption aligncenter" style="width: 310px"><a
class="thickbox" href="http://cdn.yoast.com/wp-content/uploads/2010/07/wp-e-commerce.png"><img
src="http://cdn3.yoast.com/wp-content/uploads/2010/07/wp-e-commerce-300x74.png" alt="WP e-commerce analytics integration" title="WP e-commerce analytics integration" width="300" height="74" class="size-medium wp-image-2824" /></a><p
class="wp-caption-text">WP e-commerce analytics integration</p></div><h3>Event tracking</h3><p>In the past this plugin used page views to track downloads and outbound clicks, thereby inflating page views. I started doing this before event tracking even existed, but of course this needed to be changed. The plugin now uses event tracking for this by default, but, if you want to, you can just check a box and it’ll switch to using page views again. You can also switch to page views just for downloads, to keep your goals working the same way.</p><h2>An API for this plugin</h2><p>This plugin adds a couple of filters so you can add your own tracking from your own plugins without having to hassle with the rest of the tracking. The 3 filters are:</p><pre class="brush: php; title: ; notranslate">$push = apply_filters('yoast-ga-custom-vars',$push, $customvarslot);
$push = apply_filters('yoast-ga-push-before-pageview',$push);
$push = apply_filters('yoast-ga-push-after-pageview',$push);</pre><p>Custom variables are hard to deal with, as they need to be in the same "slot" all the time, that's why the <code>$customvarslot</code> is passed along.</p><h2>Go get the Google Analytics for WordPress plugin</h2><p>I have to believe that I've convinced you by now, so please <a
href="http://downloads.wordpress.org/plugin/google-analytics-for-wordpress.4.2.4.zip">go get the plugin</a>. Please do let me know in the comments when you've upgraded, and what you think I should be adding!</p><p><a
href="http://yoast.com/google-analytics-wordpress-v4/">Google Analytics for WordPress reaches version 4</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/google-analytics-wordpress-v4/feed/</wfw:commentRss> <slash:comments>149</slash:comments> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2010/07/google-analytics-configuration1-125x125.png" /> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2010/07/google-analytics-configuration1.png" medium="image"> <media:title type="html">Google Analytics Configuration</media:title> <media:description type="html">Google Analytics Configuration</media:description> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2010/07/google-analytics-configuration1-125x125.png" /> </media:content> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2010/07/google-analytics-configuration.png" medium="image"> <media:title type="html">Google Analytics Configuration</media:title> <media:description type="html">Google Analytics Configuration</media:description> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2010/07/google-analytics-configuration-125x125.png" /> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2010/07/wp-e-commerce.png" medium="image"> <media:title type="html">WP e-commerce analytics integration</media:title> <media:description type="html">WP e-commerce analytics integration</media:description> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2010/07/wp-e-commerce-125x125.png" /> </media:content> </item> <item><title>Rankings that make sense</title><link>http://yoast.com/rankings-that-make-sense/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rankings-that-make-sense</link> <comments>http://yoast.com/rankings-that-make-sense/#comments</comments> <pubDate>Mon, 07 Dec 2009 14:20:50 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[SEO]]></category> <category><![CDATA[Google Analytics]]></category> <category><![CDATA[Rankings]]></category> <category><![CDATA[SEO tools]]></category><guid
isPermaLink="false">http://yoast.com/?p=1873</guid> <description><![CDATA[<p>We've written about rankings here before, for instance: how to track them with Google Analytics, part I and part II and even why they are worthless (the latter post by Eduard, who has, starting december 1st, joined us at OrangeValley!!), on top of that, I was using this rank tracker all the time! But today, [...]</p><p><a
href="http://yoast.com/rankings-that-make-sense/">Rankings that make sense</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p><a
href="http://www.seorankmonitor.com/"><img
class="alignright size-full wp-image-1879" style="background-color: #001c47; padding: 15px;" title="seo-rank-monitor-logo" src="http://yoast.com/cdn-edge/uploads/2009/12/seo-rank-monitor-logo.png" alt="" width="179" height="53" /></a>We've written about rankings here before, for instance: how to track them with Google Analytics, <a
href="http://yoast.com/track-seo-rankings-google-analytics/">part I</a> and <a
href="http://yoast.com/track-seo-rankings-and-sitelinks-with-google-analytics-ii/">part II</a> and even why <a
href="http://yoast.com/measuring-seo-rankings/">they are worthless</a> (the latter post by <a
href="http://yoast.com/author/eduard/">Eduard</a>, who has, starting december 1st, joined us at OrangeValley!!), on top of that, I was using this <a
href="http://yoast.com/tools/seo/rank-tracker/">rank tracker</a> all the time!</p><p>But today, I can tell you that we've got something new, and better. Tracking rankings is hard, especially because Google isn't too fond of people scraping their search results. Because of that, running daily rankings was a pain, but the data we all secretly wanted was in there, we've all known it for ages: visitor data, combined with rankings, day for day, week for week.</p><p>Let me show you what I wanted, all this time:</p><p><img
class="aligncenter size-full wp-image-1874" title="SEO Ranking Monitor" src="http://yoast.com/cdn-edge/uploads/2009/12/Seo-Ranking-Monitor.jpg" alt="SEO Ranking Monitor" width="550" height="58" /></p><p>This isn't some mockup, this is real stuff. A rankings tracker called <a
href="http://www.seorankmonitor.com/">SEO Rank Monitor</a>, that uses the Google Analytics API to combine rankings data with visitor data, showing you what the difference <em>really</em> is between position 1 and position 2. It's also the fastest rankings tracker I've ever seen, ranking a few dozen keywords for me in a few minutes, and then on a daily basis after that, giving some awesome ranking charts:</p><p><img
class="aligncenter size-full wp-image-1875" title="keyword-rankings" src="http://yoast.com/cdn-edge/uploads/2009/12/keyword-rankings.jpg" alt="" width="550" height="301" /></p><p>It also allows you to add your competitors, so you can easily track their goings on your keywords as well. Now all experienced SEO's know they should work on keyword groups more than they should work on single keywords, and thus this new ranking tool allows you to tag your keywords, easily allowing you to check rankings for the group:</p><p><img
class="aligncenter size-full wp-image-1876" title="tag-keyword-rankings" src="http://yoast.com/cdn-edge/uploads/2009/12/tag-keyword-rankings.jpg" alt="" width="550" height="171" /></p><p>As you can see it also allows you to export the keywords to a CSV file. There's more: tracking the number of backlinks to your domain according to the search engines you selected, the number of indexed pages etc. Also, because this isn't a rank tracker that runs on your own machine, it's not clogging up resources and you can check your rankings from everywhere you want.</p><p>The tool is paid, of course, but you can try it for free for a month. The normal pricing is $39 a month for the Pro package and $19 a month for the Basic package. With the Pro package you can track 2,500 keywords and 10 domains, with the Basic package you're limited to 1 domain and 100 keywords. In other words: the Pro package is well worth the money. Now there's something even better: I've negotiated a discount code with which you'll get $10 a month off, for as long as you decide to keep your subscription! The discount code should be easy to remember: "yoast" is all you need.</p><p><strong>So go <a
href="http://www.seorankmonitor.com/">check it out</a>, and should you decide to sign up, don't forget to use the discount code "yoast"!</strong></p><p><a
href="http://yoast.com/rankings-that-make-sense/">Rankings that make sense</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/rankings-that-make-sense/feed/</wfw:commentRss> <slash:comments>31</slash:comments> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2009/12/seo-rank-monitor-logo-125x53.png" /> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2009/12/seo-rank-monitor-logo.png" medium="image"> <media:title type="html">seo-rank-monitor-logo</media:title> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2009/12/seo-rank-monitor-logo-125x53.png" /> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/12/Seo-Ranking-Monitor.jpg" medium="image"> <media:title type="html">SEO Ranking Monitor</media:title> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/12/keyword-rankings.jpg" medium="image"> <media:title type="html">keyword-rankings</media:title> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2009/12/keyword-rankings-125x125.jpg" /> </media:content> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2009/12/tag-keyword-rankings.jpg" medium="image"> <media:title type="html">tag-keyword-rankings</media:title> </media:content> </item> <item><title>Google Analytics plugin updates</title><link>http://yoast.com/google-analytics-plugin-updates/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=google-analytics-plugin-updates</link> <comments>http://yoast.com/google-analytics-plugin-updates/#comments</comments> <pubDate>Fri, 04 Dec 2009 20:21:17 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[Google Analytics]]></category> <category><![CDATA[WordPress Plugins]]></category><guid
isPermaLink="false">http://yoast.com/?p=1867</guid> <description><![CDATA[<p>One of my most popular plugins is my Google Analytics for WordPress plugin, having been downloaded almost 700,000 times. This post is to let you know that this plugin is going to be getting quite a few updates in the coming month, the first of which I've just submitted to WordPress.org. There's two reasons for [...]</p><p><a
href="http://yoast.com/google-analytics-plugin-updates/">Google Analytics plugin updates</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>One of my most popular plugins is my <a
href="http://yoast.com/wordpress/google-analytics/">Google Analytics for WordPress plugin</a>, having been downloaded almost 700,000 times. This post is to let you know that this plugin is going to be getting quite a few updates in the coming month, the first of which I've just submitted to WordPress.org.</p><p>There's two reasons for the updates: the first is security, there is an <a
rel="nofollow" href="http://en.wikipedia.org/wiki/Cross-site_scripting">XSS</a> hole (mentioned <a
href="http://www.securityfocus.com/archive/1/508211">here</a>) in the latest version of my plugin, which is fixed by this newest update, so please, do update.</p><p>The second reason is a lot more fun: I'm going to be adding support for the new <a
href="http://analytics.blogspot.com/2009/12/google-analytics-launches-asynchronous.html">asynchronous tracking</a>. It's going to be optional, of course, which makes it a bit of work to implement, so please give me some time. You can expect an update in about a week for version 1, but as this is a new form of tracking, I can't guarantee the new form will be entirely working, there might be bugs in there, etc.</p><p>So, thanks for using my Google Analytics plugin, and please share all your thoughts about it in the comments!</p><p><a
href="http://yoast.com/google-analytics-plugin-updates/">Google Analytics plugin updates</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/google-analytics-plugin-updates/feed/</wfw:commentRss> <slash:comments>49</slash:comments> </item> <item><title>Comment Tracking in Clicky</title><link>http://yoast.com/clicky-comment-tracking/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=clicky-comment-tracking</link> <comments>http://yoast.com/clicky-comment-tracking/#comments</comments> <pubDate>Tue, 17 Nov 2009 20:20:02 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Clicky]]></category> <category><![CDATA[WordPress Plugins]]></category><guid
isPermaLink="false">http://yoast.com/?p=1761</guid> <description><![CDATA[<p>So one of the things I've always wanted to do is use an Analytics tools API to enrich the data about a visit. Clicky is one of the few tools out there that have a well detailed API that allows you to push in extra data during the visit. The extra data bit I really [...]</p><p><a
href="http://yoast.com/clicky-comment-tracking/">Comment Tracking in Clicky</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>So one of the things I've always wanted to do is use an Analytics tools API to enrich the data about a visit. <a
class="track clicky_log_outbound" href="http://yoast.com/out/clicky/">Clicky</a> is one of the few tools out there that have a well detailed API that allows you to push in extra data during the visit. The extra data bit I really wanted to add is an action that I consider one of the most vital actions on a blog: commenting.</p><p>Let me start by showing you the "end result", first what a "visit" containing a comment looks like, second what data is stored for each visitor (the new feature adds both the name and the email address):</p><p><a
class="thickbox" rel="clicky" href="http://cdn2.yoast.com/wp-content/uploads/2009/11/clicky-comment.png"><img
src="http://cdn2.yoast.com/wp-content/uploads/2009/11/clicky-comment-300x104.png" alt="clicky-comment" title="clicky-comment" width="300" height="104" class="alignnone size-medium wp-image-1762" /></a></p><p><a
class="thickbox" rel="clicky" href="http://cdn3.yoast.com/wp-content/uploads/2009/11/clicky-visitor-detail.png"><img
src="http://cdn3.yoast.com/wp-content/uploads/2009/11/clicky-visitor-detail-300x119.png" alt="clicky-visitor-detail" title="clicky-visitor-detail" width="300" height="119" class="alignnone size-medium wp-image-1763" /></a></p><p>This is done by some pretty cool combination of the WordPress API and the Clicky API, and it also allows you to add comments as a goal in your Clicky:</p><p><a
class="thickbox" rel="clicky" href="http://cdn2.yoast.com/wp-content/uploads/2009/11/clicky-goal-setup.png"><img
src="http://cdn.yoast.com/wp-content/uploads/2009/11/clicky-goal-setup-300x257.png" alt="clicky-goal-setup" title="clicky-goal-setup" width="300" height="257" class="size-medium wp-image-1769" /></a></p><p>Pretty neat huh?</p><p><a
href="http://yoast.com/clicky-comment-tracking/">Comment Tracking in Clicky</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/clicky-comment-tracking/feed/</wfw:commentRss> <slash:comments>8</slash:comments> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/11/clicky-comment-125x125.png" /> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2009/11/clicky-comment.png" medium="image"> <media:title type="html">clicky-comment</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/11/clicky-comment-125x125.png" /> </media:content> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2009/11/clicky-visitor-detail.png" medium="image"> <media:title type="html">clicky-visitor-detail</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/11/clicky-visitor-detail-125x125.png" /> </media:content> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2009/11/clicky-goal-setup.png" medium="image"> <media:title type="html">clicky-goal-setup</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/11/clicky-goal-setup-125x125.png" /> </media:content> </item> <item><title>Practical Guide to creating a 404 Error Page for WordPress</title><link>http://yoast.com/404-error-pages-wordpress/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=404-error-pages-wordpress</link> <comments>http://yoast.com/404-error-pages-wordpress/#comments</comments> <pubDate>Tue, 03 Nov 2009 13:30:42 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[Webdesign & development]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress Themes]]></category><guid
isPermaLink="false">http://yoast.com/?p=1645</guid> <description><![CDATA[<p>I make mistakes. You make mistakes. We all do. And some of these mistakes end up providing our readers with a 404 page. Chances are that page says "Error 404: file not found". How does that help your visitor? Instead of just identifying the problem, your 404 error page needs to offer a solution. In [...]</p><p><a
href="http://yoast.com/404-error-pages-wordpress/">Practical Guide to creating a 404 Error Page for WordPress</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>I make mistakes. You make mistakes. We all do. And some of these mistakes end up providing our readers with a 404 page. Chances are that page says "Error 404: file not found". How does that help your visitor?</p><p><strong
style="font-size: 120%; text-shadow: 1px 1px 1px #aaa;"><em>Instead of just identifying the problem, your 404 error page needs to offer a solution.</em></strong></p><p><img
class="alignright size-full wp-image-1744" title="Crossing out problems and instead offering solutions for your 404 error page" src="http://cdn.yoast.com/wp-content/uploads/2009/11/problems-solutions.jpg" alt="Crossing out problems and instead offering solutions for your 404 error page" width="250" height="166" />In the default WordPress Kubrick theme the 404 error page (<a
class="thickbox" title="Kubrick 404 - Ugly as hell" href="http://cdn2.yoast.com/wp-content/uploads/2009/10/kubrick-4041.png" rel="404s">example</a>) is probably one of the ugliest pages you've ever seen, and chances are yours is not any better. Today is the time to end that. This post will provide you with <em>everything</em> you need to make your "404 - File not found" page a starting point instead of a dead end street.</p><p>The goal of a good 404 error page is simple: to make sure visitors landing on it continue browsing your site, and find the content they came for. Let's get going.</p><h2>Get into your visitors mindset</h2><p>Get into the mindset of the person that just got to a 404 error page on your site. They were expecting something else, if not, they wouldn't have gone there. So there's a couple of things you should absolutely <em>not</em> do:</p><p>First of all, considering they've probably clicked a link somewhere to get to that 404 error page, whose fault is it that they're getting a 404? Theirs? No. Yours? It very well might be, so you'd better apologize.</p><p>Second, make sure the styling of your 404 error page fits in with the rest of your site. Sometimes designers go overboard with their 404 pages, and make them look like, for instance, a Windows blue screen. This can have the very undesired effect of people leaving immediately.</p><p>Third, if you are going to make jokes, like that Windows blue screen, make sure it's a joke everyone gets. Especially when you're blogging in English, you might end up with a lot of readers for whom English is their second or third language. Your puns, though well intended, might be going nowhere because their mastery of the language isn't sufficient. Because of that they might leave... Is that worth it?</p><h2>Let's make a killer 404 error page for WordPress</h2><p>Ok so we know what not to do. We also know that the visitor came to your site looking for specific content, usually having followed a link from somewhere. Now it's time to start giving them ways of doing that. If you're not using WordPress and you're lazy, the <a
href="http://googlewebmastercentral.blogspot.com/2008/08/make-your-404-pages-more-useful.html">Google 404 widget</a> might be helpful. If you <em>are</em> using WordPress, we can do better than that.</p><p>Let's let us be inspired by some great 404 error pages:</p><div
style="width: 425px; height: 130px; margin: 0 auto;"><a
class="thickbox" title="Apple's 404 page" href="http://cdn2.yoast.com/wp-content/uploads/2009/10/apple-404.png" rel="404-inspire"><img
class="alignleft size-thumbnail wp-image-1648" src="http://cdn.yoast.com/wp-content/uploads/2009/10/apple-404-125x125.png" alt="Apple 404 error page" width="125" height="125" /></a><a
class="thickbox" title="IBM's 404 page" href="http://cdn.yoast.com/wp-content/uploads/2009/10/ibm-404.png" rel="404-inspire"><img
class="alignleft size-thumbnail wp-image-1650" src="http://cdn3.yoast.com/wp-content/uploads/2009/10/ibm-404-125x125.png" alt="ibm 404 error page" width="125" height="125" /></a><a
class="thickbox" title="Conversion Rate Experts 404 page" href="http://cdn.yoast.com/wp-content/uploads/2009/11/cre.png" rel="404-inspire"><img
class="alignleft size-thumbnail wp-image-1699" src="http://cdn3.yoast.com/wp-content/uploads/2009/11/cre-125x125.png" alt="Conversion Rate Experts 404 error page" width="125" height="125" /></a></div><p
style="margin-top: 10px; clear: both;">I'll be honest: the <a
href="http://conversion-rate-experts.com/">Conversion Rate Experts</a> guys have inspired the first version of my 404 error page. They offer you 4 options to get to the content you were looking for:</p><ol><li>search</li><li>check the URL for misspellings</li><li>check the sitemap</li><li>start over at the homepage</li></ol><p>That's a <em>great</em> start. Apple gives you a sitemap straight away. Depending on your site's structure that might be a great idea too.</p><p>I wanted to add one more thing: a set of pages that actually might be related to the URL people had typed in. To do that, we'd have to parse the URL and see if there's something useful in there. Let's see what we have to work with:</p><h2>What data does a 404 error page provide?</h2><p><img
class="alignleft size-full wp-image-1729" title="404-error" src="http://cdn3.yoast.com/wp-content/uploads/2009/11/404-error.jpg" alt="404-error" width="250" height="134" />A lot of people seem to think that a 404 page is a dead end street. It's not, there's a whole lot of data that can help you find the content your visitor was looking for. Let's start with the URL: it contains something very useful. All the text that's there after the slash of your domain should be pointing you to what it is the person was looking for.</p><p>Luckily, WordPress stores that information for you. The <code>$wp_query-&gt;query_vars['name']</code> variable holds whatever was in there. It does do some replacing in there though, it replaces all weird entities with a dash (-). We'll use this bit of information to spice up your 404 error page.</p><p>First of all, let's check whether there's a direct match for that var in a page name once you strip out all the things that people sometimes add to your URL erroneously. (If you read on there's an adapted version of the Kubrick 404 page which you can use to update your own themes.)</p><pre class="brush: php; title: ; notranslate">$s = $wp_query-&gt;query_vars['name'];
$s = preg_replace(&quot;/(.*)-(html|htm|php|asp|aspx)$/&quot;,&quot;$1&quot;,$s);
$posts = query_posts( array( 'post_type' =&gt; 'any', 'name' =&gt; $s) );</pre><p>If that doesn't deliver results, you'll want to do a search for that word, to do that we'll have to rip out the dashes in the name, and then do the search. As we're going to re-use the <code>$s</code> variable further on, we'll do that outside of the if statement to check whether the previous query delivered results:</p><pre class="brush: php; title: ; notranslate">$s = str_replace(&quot;-&quot;,&quot; &quot;,$s);
if (count($posts) == 0) {
  $posts = query_posts(array( array('post_type' =&gt; 'any', 'name' =&gt; $s) );
}</pre><p>Now we have an array with posts, at least, we hope we do, so let's check that, and loop through it:</p><pre class="brush: php; title: ; notranslate">if (count($posts) &gt; 0) {
  echo &quot;&lt;p&gt;Were you looking for &lt;strong&gt;one of the following&lt;/strong&gt; posts
    or pages?&lt;/p&gt;&quot;;
  echo &quot;&lt;ul&gt;&quot;;
  foreach ($posts as $post) {
    echo '&lt;li&gt;';
    echo '&lt;a href=&quot;'.get_permalink($post-&gt;ID).'&quot;&gt;'.$post-&gt;post_title.'&lt;/a&gt;';
    echo '&lt;/li&gt;';
  }
  echo &quot;&lt;/ul&gt;&quot;;
}</pre><p>I've made an adapted version of the Kubrick 404 error page, which you can <a
id="kubrick404" href="http://cdn3.yoast.com/wp-content/uploads/2009/11/404.zip">download here</a>.</p><p>There's a plugin that does something similar to the above, called <a
href="http://wordpress.org/extend/plugins/smart-404/">Smart 404</a>. It chooses to redirect the visitor to the first result it gets. It wouldn't be my preference, I actually want people to notice that the URL was wrong.</p><p>So now we have a great 404 error page, but we haven't used all the data that we were provided with. Another bit of data the 404 provides is the referrer: someone linked to your page with a wrong URL, or is linking to a page that isn't there anymore. So we've got one thing left to do:</p><h2 id="404prevention">Preventing 404 error pages</h2><p>There's a very cool plugin called <a
href="http://wordpress.org/extend/plugins/404-notifier/">404 notifier</a> by Alex King, which can provide you with an RSS feed of the 404's on your site, and <a
href="http://urbangiraffe.com/plugins/redirection/">Redirection</a>, one of my all time favorite plugins, offers the same functionality. You could also use my own <a
href="http://yoast.com/wordpress/google-analytics/">Google Analytics for WordPress plugin</a>. It tracks the 404's as 404.html (look for them in your content report).</p><p>Using Google Analytics has the added advantage that it saves the referrer, so you know which URL the visitor originated from. This allows you to not only redirect the URL to the correct place, but also to ask the site that referred the visitor to fix the URL.</p><p>Another great way to keep track of 404's on your site is using <a
href="https://www.google.com/webmasters/tools/">Google Webmaster Tools</a>. In the Diagnostics - Crawl Errors area of Webmaster Tools Google gives you a great overview of what 404's it encountered on your site:</p><p><a
class="thickbox" href="http://cdn2.yoast.com/wp-content/uploads/2009/11/google-crawl-errors.png"><img
class="aligncenter size-medium wp-image-1707" title="google-crawl-errors" src="http://cdn3.yoast.com/wp-content/uploads/2009/11/google-crawl-errors-300x215.png" alt="google-crawl-errors" width="300" height="215" /></a></p><h2>Two Things you Need to Know about 404 error pages</h2><p>These are things that WordPress is doing right, but it's good to know these things:</p><ul><li>Internet Explorer will only show your custom 404 page if it's larger than 512 bytes (hard to get smaller than that with WordPress).</li><li>404 is not only the name, it's also the HTTP header that the page should send, if not, you might end up with 404 pages in the search engines indexes. You can easily check this with a HTTP header checker.</li></ul><p>As said, no need to worry if you're using WordPress, but good to know these things.</p><p>There's really no excuse left now for a bad 404 error page on your WordPress blog or anywhere else, so go fix yours! Once you've done that, drop your site's URL in the comments, and I'll make a small gallery of cool 404 error pages in this post.</p><p><a
href="http://yoast.com/404-error-pages-wordpress/">Practical Guide to creating a 404 Error Page for WordPress</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/404-error-pages-wordpress/feed/</wfw:commentRss> <slash:comments>78</slash:comments> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2009/11/problems-solutions-125x125.jpg" /> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/11/problems-solutions.jpg" medium="image"> <media:title type="html">Crossing out problems and instead offering solutions</media:title> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2009/11/problems-solutions-125x125.jpg" /> </media:content> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2009/10/apple-404.png" medium="image"> <media:title type="html">apple-404</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/10/apple-404-125x125.png" /> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/10/ibm-404.png" medium="image"> <media:title type="html">ibm-404</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/10/ibm-404-125x125.png" /> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/11/cre.png" medium="image"> <media:title type="html">cre</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/11/cre-125x125.png" /> </media:content> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2009/11/404-error.jpg" medium="image"> <media:title type="html">404-error</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/11/404-error-125x125.jpg" /> </media:content> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2009/11/google-crawl-errors.png" medium="image"> <media:title type="html">google-crawl-errors</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/11/google-crawl-errors-125x125.png" /> </media:content> </item> <item><title>Searching Without Result</title><link>http://yoast.com/zero-result-searches-wordpress-google-analytics/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zero-result-searches-wordpress-google-analytics</link> <comments>http://yoast.com/zero-result-searches-wordpress-google-analytics/#comments</comments> <pubDate>Thu, 01 Oct 2009 21:00:44 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[Advertising]]></category> <category><![CDATA[Google Analytics]]></category><guid
isPermaLink="false">http://yoast.com/?p=1611</guid> <description><![CDATA[<p>Justin Cutroni wrote a great post a while back on Tracking Zero Result Searches in Google Analytics. Tracking zero result searches on your website (corporate site, e-commerce website or your blog) is vital to get a glimpse of what your visitors are looking for but can't find on your website. Beneath you will find more [...]</p><p><a
href="http://yoast.com/zero-result-searches-wordpress-google-analytics/">Searching Without Result</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>Justin Cutroni wrote a great post a while back on <a
href="http://www.epikone.com/blog/2009/09/08/tracking-ero-result-searches-in-google-analytics/">Tracking Zero Result Searches in Google Analytics</a>. Tracking zero result searches on your website (corporate site, e-commerce website or your blog) is vital to get a glimpse of what your visitors are looking for but can't find on your website.</p><p>Beneath you will find more info the updated <a
href="http://yoast.com/wordpress/google-analytics/">Google Analytics plugin for WordPress</a> and a guide on setting up zero result search tracking on your blog, but first we'll go in depth with the marketing and usability perspective of tracking those failed searches.</p><h2> Identity vs. brand perception</h2><p>Every website owner can explain in a few sentences why the website is online and why people should visit it.. this is the identity of your website. Each visitor has his own perception of your website (mostly based on, advertisement,  design and tone of voice). This is the brand perception.</p><p>Within a perfect world the perception your visitors have of your brand and your identity would be a perfect match. Of course this isn't the case for most websites (unless you work for Coca Cola, Google or Apple, and even then). Due to the huge diversity of visitors almost all website are facing the challenge of providing visitors with the correct information to persuade them to take the desired action (buy, read on, interact, subscribe).</p><p>In our experience, most website aren't always successful in achieving this harmony of brand and brand perception… But how can you determine whether this is the case on your site? Look at your landing pages with high bounce rates. Visitors leave because they are not interested in your offer or expected something different when they clicked on the link to your website. And, of course, check out on-site search, it's a very valuable metric to look at:</p><h2>How can internal search tracking help you improve your website?</h2><p>Going back to the example of the landing page with a high bounce rate, we only know people are leaving the website and can only guess as to what they were looking for. Tracking your visitors searches will give you far more insight in what your visitors are really looking for but can't find.</p><p>By combining the (internal) search keywords, possible e-commerce data and the top content of your website you get some basic insight in the most popular content/products of your website. But this (as Justin Cutroni points out in his blog post) isn't including searches visitors made on your site that have zero results.</p><h2>What does a zero result search mean?</h2><p>If a visitors performs a search on you website and isn't getting any results it's likely he will keep searching… But there's a big chance this next search will be done on one of your competitors websites. A search query with no results can have quite a few different meanings, all of them useful information to help you improve your website, the most common ones are:</p><ol><li><strong>Brand Identity Issues</strong><br
/> The visitor has the perception that he can find a certain piece of information on your website but shouldn't have been on your website in the first place (a discrepancy between your identity and the brand perception of your visitor).</p><p>Chances are you are attracting the wrong kind of visitors (or in the wrong stage of a buying process if your are trying to sell stuff). Taking a look at the traffic source in order to determine if you're ranking on the proper keywords or target the right terms with your CPC campaign (maybe you can save some bucks). The referral pages are worth looking at, maybe visitors performing this type of search just didn't look at the right pages which would help them in their quest for information.</li><li><strong>Keyword Choices</strong><br
/> The words used by the visitor when searching for something are completely different that the vocabulary used on the website. For example: Your visitor searches for "VAT" but the website only contains a section about "goods and services tax".</p><p>This situation is a <em>great</em> chance to improve your website. You will be presented with a list of quickly fixable "issue": keywords used by your visitors which are not present on your website at the moment. Including search terms which resulted in zero search results within related post/pages will make sure people can find what they are looking for (even if it's in their own words) and can make a huge impact on the user-friendliness and the effectiveness of your website (whether you are trying to sell stuff or just get your content read). Looking back at the identity and brand perception matching tone of voice and vocabulary with your visitors could prove a step in the right direction to get more loyal visitors.</li><li><strong>The Internal Search Engine is Inadequate</strong><br
/> The search engine used on the website can not find content that should have been showing up in the search results, even when you're sure it's there. While this might not be as quick a fix, internal search is, as you will understand by now, hugely important. So you should solve the issues with the search engine and save valuable visitors.</li></ol><p>Of course there are many more useful way's of looking at the data (think of the data visualization option of Google Analytics). Justin also points out <a
href="http://www.epikone.com/blog/2009/09/08/tracking-ero-result-searches-in-google-analytics/">two interesting way's of looking at it</a>.</p><h2>How to implement the Zero result search with the Google Analytics plugin for WordPress</h2><p>Most of the steps Justin describes are covered within the updated <a
href="http://yoast.com/wordpress/google-analytics/">Google Analytics for WordPress</a> plugin. After installing or updating the plugin and configuring according to your needs, you're almost done. The tracking is done by default, you only need to perform the actions in step 3 of <a
href="http://www.epikone.com/blog/2009/09/08/tracking-ero-result-searches-in-google-analytics/">Justin's post</a>, configuring the Site Search settings correctly within Google Analytics.</p><h3>Google Analytics Site Search Settings</h3><p>Configure your Site Search Tracking exactly like the following video:</p><p><a
href="http://yoast.com/zero-result-searches-wordpress-google-analytics/"><em>Click here to view the embedded video.</em></a></p><p>After this you should be able to track your zero result searches. Do let us know in the comments if this is working for you and what it has helped you find!</p><p>So, if you're still here, go and update or install your Google Analytics for WordPress plugin! If you're a Magento user: stay tuned for the Magento extension that implements this same kind of tracking for Magento!</p><p>Huge thanks to my colleague Roel Willems for writing the first and awesome draft for this post! If you need help interpreting your Google Analytics results, or in setting up this tracking, <a
href="http://yoast.com/hire-me/">you know where to find us</a>!</p><p><a
href="http://yoast.com/zero-result-searches-wordpress-google-analytics/">Searching Without Result</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/zero-result-searches-wordpress-google-analytics/feed/</wfw:commentRss> <slash:comments>25</slash:comments> <media:content url="http://www.vimeo.com/moogaloop.swf?clip_id=6856776" duration="25"> <media:player url="http://www.vimeo.com/moogaloop.swf?clip_id=6856776" /> <media:title type="html">Searching Without Result &#8226; Yoast</media:title> <media:description type="html">Justin Cutroni wrote a great post a while back on Tracking Zero Result Searches in Google Analytics. Tracking zero result searches on your website (corporate site, e-commerce website or your blog) is vital to get a glimpse of what your visitors are looking for but can&#039;t find on your website. Beneath</media:description> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2012/01/searching-without-result-8226-yoast.jpg" /> <media:keywords>Advertising,Analytics,Google Analytics</media:keywords> </media:content> </item> <item><title>Track SEO rankings and Sitelinks with Google Analytics II</title><link>http://yoast.com/track-seo-rankings-and-sitelinks-with-google-analytics-ii/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=track-seo-rankings-and-sitelinks-with-google-analytics-ii</link> <comments>http://yoast.com/track-seo-rankings-and-sitelinks-with-google-analytics-ii/#comments</comments> <pubDate>Wed, 02 Sep 2009 21:23:09 +0000</pubDate> <dc:creator>André Scholten</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[SEO]]></category> <category><![CDATA[Google Analytics]]></category><guid
isPermaLink="false">http://yoast.com/?p=1582</guid> <description><![CDATA[<p>Earlier this year I did a guest post on this site to show you how to track your SEO rankings with Google Analytics. It was quite some news for a lot of people, just take a look at the 300+ comments. And now it's time for the follow-up. Google's new technology Since a while Google [...]</p><p><a
href="http://yoast.com/track-seo-rankings-and-sitelinks-with-google-analytics-ii/">Track SEO rankings and Sitelinks with Google Analytics II</a> is a post by <a
rel="author" href="http://yoast.com/author/andre/">André Scholten</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>Earlier this year I did a guest post on this site to show you how to track your <a
href="http://yoast.com/track-seo-rankings-google-analytics/">SEO rankings with Google Analytics</a>. It was quite some news for a lot of people, just take a look at the 300+ comments. And now it's time for the follow-up.</p><h2>Google's new technology</h2><p>Since a while Google is testing a new <a
href="http://smackdown.blogsblogsblogs.com/2009/01/30/google-web-search-goes-completely-ajax/">AJAX version</a> of their search engine. I'm not sure who's seeing the AJAX version and who isn't, but in Holland most of the Firefox users do see it. You can see if you're one the new one by looking at the url of a result page:</p><p><img
src="http://cdn.yoast.com/wp-content/uploads/2009/09/examplefirefox.gif" alt="examplefirefox" width="533" height="35" class="alignnone size-full wp-image-1583" /></p><p><span
id="more-1582"></span></p><p>The great thing about this new version is that it makes Google Analytics capable of tracking the clicked <strong>position</strong>. Yes you heard what I say: the position. Where the 'old' Google only allowed us to track the page a keyword was on, the new Google allows us to track the exact position.</p><h2>The new filters</h2><p>You can use the first 2 filters mentioned in the old article, be before you do that: create a new profile where you can apply these filters to (tip: watch <a
href="http://yoast.com/rankings-filter-analytics-video/">the video</a> where Joost explains this all):</p><pre class="brush: plain; title: ; notranslate">Filter name: &quot;Ranking 1&quot;
Filter type: &quot;Custom filter - Include&quot;
Filter field: &quot;Campaign Medium&quot;
Filter pattern: &quot;organic&quot;</pre><pre class="brush: plain; title: ; notranslate">Filter name: &quot;Ranking 2&quot;
Filter type: &quot;Custom filter - Include&quot;
Filter field: &quot;Campaign Source&quot;
Filter pattern: &quot;google&quot;</pre><p>And this is the new filter that is capable of tracking positions:</p><p><img
src="http://cdn.yoast.com/wp-content/uploads/2009/09/ranking31.gif" alt="ranking3" width="411" height="439" class="alignnone size-full wp-image-1584" /></p><p>And the copy/paste version:</p><pre class="brush: plain; title: ; notranslate">Filter name: &quot;Ranking 3&quot;
Filter type: &quot;Custom filter - Advanced&quot;
Field A -&gt; Extract A: &quot;Campaign term&quot;, &quot;(.*)&quot;
Field B -&gt; Extract B: &quot;Referral&quot;, &quot;(\?|&amp;)cd=([^&amp;]*)&quot;
Output To -&gt; User Defined: &quot;$A1 (position: $B2)&quot;</pre><h2>The new reports</h2><p>If you have implemented everything correct you should see this in the "Visitors -&gt; User Defined" report:</p><p><img
src="http://cdn.yoast.com/wp-content/uploads/2009/09/userdefinedkeywords.gif" alt="userdefinedkeywords" width="240" height="177" class="alignnone size-full wp-image-1585" /></p><p>A list of keywords with the position the keyword was on when a visitor clicked it. Now you're able to see the exact positions, more precise than any ranking tool that is out there. There's 1 minor drawback: business listings next to the little maps are counted as a position also:</p><p><img
src="http://cdn3.yoast.com/wp-content/uploads/2009/09/mapsresult.gif" alt="mapsresult" width="450" height="285" class="alignnone size-full wp-image-1586" /></p><p>The blue result is counted as the 11th result, and not as the first organic result. But when you're analyzing your positions you can easily separate the geo-related keywords from the rest.</p><h2>Sitelinks</h2><p>Very interesting: the sitelinks positions are also tracked, and in a more intelligent way than the maps results. If you click on a sitelink, the actual position of that sitelink is passed on. For example, this sitelink has position 4:</p><p><img
src="http://cdn2.yoast.com/wp-content/uploads/2009/09/sitelinksranking.gif" alt="sitelinksranking" width="400" height="125" class="alignnone size-full wp-image-1587" /></p><p>If you want to get better insights about your sitelinks you should create an extra profile with the first 3 filters mentioned above. Then add this extra filter to only track those keywords where people clicked on the (full or oneline) sitelinks:</p><pre class="brush: plain; title: ; notranslate">Filter name: &quot;Ranking 5&quot;
Filter type: &quot;Custom filter - Include&quot;
Filter field: &quot;Referral&quot;
Filter pattern: &quot;oi=(oneline_sitelinks|smap)&quot;</pre><p>The positions you will see are pure sitelinks positions, and you will get an idea about which sitelink is popular and which isn't.</p><h2>Extra tip</h2><p>While we are dissecting the referring url from the Google Search engine we could take a look at the "meta" parameter (<a
href="http://andrescholten.nl/zoekt-men-in-google-op-het-internet-of-in-het-nederland/">my dutch blogpost about this</a>). It's used when people use one of these options:</p><p><img
src="http://cdn3.yoast.com/wp-content/uploads/2009/09/googleopties.gif" alt="googleopties" width="485" height="102" class="alignnone size-full wp-image-1588" /></p><p>The selected country or language is in the "meta" parameter (not applicable for Google.com) and can be made visible with the following filter:</p><pre class="brush: plain; title: ; notranslate">Filter name: &quot;Language / Country&quot;
Filter type: &quot;Custom filter - Advanced&quot;
Field A -&gt; Extract A: &quot;Referral&quot;, &quot;(?|&amp;)meta=([^&amp;]*)&quot;
Output To -&gt; User Defined: &quot;$A2&quot;</pre><p>And remember: do this on a new profile so you don't mess up existing profiles. The selected language(s) or country is visible in the "Visitors -&gt; User Defined" report.</p><p>I had this filter for quite a while on a lot of Dutch sites and saw that the three options where used like this:</p><ol><li>The internet: 96,69%</li><li>Pages in Dutch: 3,28%</li><li>Pages from Holland: 0,03%</li></ol><p>Well, that was the update, hope you liked it.</p><p><a
href="http://yoast.com/track-seo-rankings-and-sitelinks-with-google-analytics-ii/">Track SEO rankings and Sitelinks with Google Analytics II</a> is a post by <a
rel="author" href="http://yoast.com/author/andre/">André Scholten</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/track-seo-rankings-and-sitelinks-with-google-analytics-ii/feed/</wfw:commentRss> <slash:comments>108</slash:comments> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/09/examplefirefox-125x35.gif" /> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/09/examplefirefox.gif" medium="image"> <media:title type="html">examplefirefox</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/09/examplefirefox-125x35.gif" /> </media:content> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2009/09/ranking3.gif" medium="image"> <media:title type="html">ranking3</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/09/ranking3-125x125.gif" /> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/09/userdefinedkeywords.gif" medium="image"> <media:title type="html">userdefinedkeywords</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/09/userdefinedkeywords-125x125.gif" /> </media:content> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2009/09/mapsresult.gif" medium="image"> <media:title type="html">mapsresult</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/09/mapsresult-125x125.gif" /> </media:content> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2009/09/sitelinksranking.gif" medium="image"> <media:title type="html">sitelinksranking</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/09/sitelinksranking-125x125.gif" /> </media:content> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2009/09/googleopties.gif" medium="image"> <media:title type="html">googleopties</media:title> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2009/09/googleopties-125x102.gif" /> </media:content> </item> <item><title>New SEO reports for Google Analytics</title><link>http://yoast.com/new-seo-reports-for-google-analytics/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-seo-reports-for-google-analytics</link> <comments>http://yoast.com/new-seo-reports-for-google-analytics/#comments</comments> <pubDate>Thu, 05 Feb 2009 22:22:20 +0000</pubDate> <dc:creator>Reinout Wolfert</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[SEO]]></category> <category><![CDATA[Google Analytics]]></category><guid
isPermaLink="false">http://yoast.com/?p=1366</guid> <description><![CDATA[<p>In this article I’ll use the SEO filter, made by Andé Scholten, to make some new interesting SEO reports in Google Analytics. I realized that the data, provided by the filter, had given me some new opportunities. It wasn’t possible in Google Analytics to get good SEO related reports. The reports I did get were [...]</p><p><a
href="http://yoast.com/new-seo-reports-for-google-analytics/">New SEO reports for Google Analytics</a> is a post by <a
rel="author" href="http://yoast.com/author/reinout/">Reinout Wolfert</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>In this article I’ll use the <a
href="http://yoast.com/track-seo-rankings-google-analytics/">SEO filter</a>, made by Andé Scholten, to make some new interesting SEO reports in Google Analytics. I realized that the data, provided by the filter, had given me some new opportunities. It wasn’t possible in Google Analytics to get good SEO related reports. The reports I did get were these:</p><ul><li>An overview of keywords during a specific period and (after clicking) the landings page on which visitors landed after clicking on the Google result.</li><li>An overview of the ‘Entrance Keywords’ of a specific page.</li></ul><p>I wanted more and figured the SEO filter from André would give me the information I needed. The filter linked webpages to the Google result page (where 0 is the first page, 10 the second page, etc). A very nice filer, but I wanted more!</p><p>The reports I have made will give you the following information:</p><ul><li>An overview of all the keywords and the Google rank over a certain period.</li><li>An overview of  a given specific keyword and the page Google rank during a certain period.</li><li>An overview of the pages, found by Google, for a specific keyword and the Google rank during a certain period.</li></ul><p><img
class="alignnone size-full wp-image-1367" src="http://cdn3.yoast.com/wp-content/uploads/2009/02/seo-keywords-google-analytics.png" alt="seo-keywords-google-analytics" width="580" height="429" /></p><p
style="text-align: center;"><a
href="http://cdn3.yoast.com/wp-content/uploads/2009/02/seo-keyword_-kinderboek-google-analytics.png"><img
class="alignnone size-thumbnail wp-image-1368" src="http://cdn2.yoast.com/wp-content/uploads/2009/02/seo-keyword_-kinderboek-google-analytics-150x150.png" alt="seo-keyword_-kinderboek-google-analytics" width="150" height="150" /></a> <a
href="http://cdn2.yoast.com/wp-content/uploads/2009/02/seo-keyword_-kinderboek-pages-google-analytics.png"><img
class="alignnone size-thumbnail wp-image-1369" src="http://cdn.yoast.com/wp-content/uploads/2009/02/seo-keyword_-kinderboek-pages-google-analytics-150x150.png" alt="seo-keyword_-kinderboek-pages-google-analytics" width="150" height="150" /></a><br
/> <em>Click on the images for a better view.</em></p><p>The screenshots in this article are taken from the Google Analytics account of <a
href="http://www.topkinderboek.nl/">Top Kinderboek</a>, a Dutch e-commerce bookstore with books for children.</p><p><strong>Now how did I get all these beautiful reports?</strong><br
/> Follow these steps and you’ll get them! But be prepared: start by making a new profile.</p><p><strong>Step 1</strong>: Make a new profile</p><p><strong>Step 2</strong>: Make a filter that only includes organic traffic in the profile<br
/> <img
class="aligncenter size-full wp-image-1371" src="http://cdn2.yoast.com/wp-content/uploads/2009/02/ga_seo_filter_2.png" alt="ga_seo_filter_2" width="417" height="324" /><br
/> <strong>Step 3</strong>: Make a filter that only includes Google traffic in the profile<br
/> <img
class="aligncenter size-full wp-image-1370" src="http://cdn2.yoast.com/wp-content/uploads/2009/02/ga_seo_filter_1.png" alt="ga_seo_filter_1" width="417" height="324" /><br
/> <strong>Step 4</strong>: Make a filter that gives every Referrer a ‘start’ value (parameter)<br
/> <img
class="aligncenter size-full wp-image-1373" src="http://cdn2.yoast.com/wp-content/uploads/2009/02/ga_seo_filter_3_start_0.png" alt="ga_seo_filter_3_start_0" width="611" height="434" /><br
/> The ‘start’ value tells us on which page in Google the link to your website was clicked by the person who searched. The first result page in Google doesn’t contain a ‘start’ value.  So I use a filter to connect a ‘start’ value to each Referer. This way each Referer contains a ‘start’ value and some Referers contain several start values. For those Referers Google will grab the first start value in the next filter (see Step 5).</p><p><strong>Step 5</strong>: Add Andre’s custom made SEO filter to your profile<br
/> <img
class="aligncenter size-full wp-image-1374" src="http://cdn2.yoast.com/wp-content/uploads/2009/02/ga_seo_filter_4_seo.png" alt="ga_seo_filter_4_seo" width="611" height="464" /><br
/> <strong>Step 6</strong>: Wait for data…</p><p><strong>Congratulations!</strong> You have now set up your profile. This profile contains only organic traffic from Google and fills the ‘User Defined’ value with the ‘start’ value.</p><p>Your profile is ready to go; time for <strong>segmentation</strong>!</p><p>One of the beautiful things about Google Analytics is the possibility to make segments. You can compare different segments over a specified time period. Unfortunately it’s only possible to compare a maximum of three segments at the same time and Analytics adds the ‘all visits’ segment to your report when you want to compare two or three segments. It is however possible to make some nice reports. Using the User Defined value (see Step 5) I made two segments:</p><p>Segment 1:  The search result is on the first result page in Google<br
/> Segment 2:  The search result is on the second page or further in Google</p><p><strong>This is how I made those segments</strong><br
/> Click on ‘Advanced Segments’ in ‘Settings’ and click on ‘+ create new custom segment’. Here you can make your own segments. In the following images you can see how you set up these two segments.<br
/> <img
src="http://cdn.yoast.com/wp-content/uploads/2009/02/serp-1-advanced-segment-google-analytics.png" alt="serp-1-advanced-segment-google-analytics" width="531" height="157" class="aligncenter size-full wp-image-1375" /><em>Segment 1:  The search result is on the first result page in Google</em></p><p><img
src="http://cdn.yoast.com/wp-content/uploads/2009/02/serp-2-advanced-segment-google-analytics.png" alt="serp-2-advanced-segment-google-analytics" width="540" height="167" class="aligncenter size-full wp-image-1376" /><em>Segment 2:  The search result is on the second page or further in Google</em></p><p><strong>Congratulations!</strong> You now have two segments. Now you can make a segment for each Google result page. This gives you more detailed information about the position of your keywords in Google.</p><p><strong>See your segments in the Google Analytics reports</strong><br
/> You now have the perfect profile with two segments. It’s time to make the segments visible in the reports. Click on ‘Advanced Segments’ as shown in the following image.<br
/> <img
src="http://cdn3.yoast.com/wp-content/uploads/2009/02/advanced-segments-google-analytics.png" alt="advanced-segments-google-analytics" width="580" height="244" class="aligncenter size-full wp-image-1377" /></p><p>When you add the segments to the standard reports then you’ll get a good overview of the SEO performance of your site during a specific period. I’ve show some examples of these reports at the beginning of this article but there are far more to explore!</p><p>Using these segments will give you a better insight into the value of SEO for your website. For Zoek Kinderboek the link on the first result page in Google is far more valuable than all other result pages. The difference between the amount of traffic from page one (and the difference in bounce rate and time on site) compared to all the other result pages is enormous.  These reports can have additional value when combined with the regular SEO reports that rank keywords. These new reports give a good overview of your presence in Google´s results, how much traffic (and sales) this presence generates and what the behavior is of the people who searches.</p><p>Good luck with making these segments and I´d be happy to hear about your experience and to receive your feedback.</p><p><strong>Update 9 February 2009</strong><br
/> In my reports the User Defined Value is often '(not set)'. The second segment will include this traffic. I don't know why the User Defined Value can be '(not set)'. Does anyone know? Google refers to 'anonymous users segment results' (in the User Guide).  But, for the time being, I'll change the second segment, so the User Defined Value (not set), will not be a part of the second segment. But... how? The segmentation filter does not return any values:<br
/> <img
src="http://cdn.yoast.com/wp-content/uploads/2009/02/google-analytics-udv-not-set.png" alt="google-analytics-udv-not-set" width="564" height="130" class="aligncenter size-full wp-image-1381" /></p><p><a
href="http://yoast.com/new-seo-reports-for-google-analytics/">New SEO reports for Google Analytics</a> is a post by <a
rel="author" href="http://yoast.com/author/reinout/">Reinout Wolfert</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/new-seo-reports-for-google-analytics/feed/</wfw:commentRss> <slash:comments>53</slash:comments> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/02/seo-keywords-google-analytics-125x125.png" /> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2009/02/seo-keywords-google-analytics.png" medium="image"> <media:title type="html">seo-keywords-google-analytics</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/02/seo-keywords-google-analytics-125x125.png" /> </media:content> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2009/02/seo-keyword_-kinderboek-google-analytics.png" medium="image"> <media:title type="html">seo-keyword_-kinderboek-google-analytics</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/02/seo-keyword_-kinderboek-google-analytics-125x125.png" /> </media:content> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2009/02/seo-keyword_-kinderboek-pages-google-analytics.png" medium="image"> <media:title type="html">seo-keyword_-kinderboek-pages-google-analytics</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/02/seo-keyword_-kinderboek-pages-google-analytics-125x125.png" /> </media:content> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2009/02/ga_seo_filter_2.png" medium="image"> <media:title type="html">ga_seo_filter_2</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/02/ga_seo_filter_2-125x125.png" /> </media:content> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2009/02/ga_seo_filter_1.png" medium="image"> <media:title type="html">ga_seo_filter_1</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/02/ga_seo_filter_1-125x125.png" /> </media:content> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2009/02/ga_seo_filter_3_start_0.png" medium="image"> <media:title type="html">ga_seo_filter_3_start_0</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/02/ga_seo_filter_3_start_0-125x125.png" /> </media:content> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2009/02/ga_seo_filter_4_seo.png" medium="image"> <media:title type="html">ga_seo_filter_4_seo</media:title> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2009/02/ga_seo_filter_4_seo-125x125.png" /> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/02/serp-1-advanced-segment-google-analytics.png" medium="image"> <media:title type="html">serp-1-advanced-segment-google-analytics</media:title> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2009/02/serp-1-advanced-segment-google-analytics-125x125.png" /> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/02/serp-2-advanced-segment-google-analytics.png" medium="image"> <media:title type="html">serp-2-advanced-segment-google-analytics</media:title> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2009/02/serp-2-advanced-segment-google-analytics-125x125.png" /> </media:content> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2009/02/advanced-segments-google-analytics.png" medium="image"> <media:title type="html">advanced-segments-google-analytics</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/02/advanced-segments-google-analytics-125x125.png" /> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/02/google-analytics-udv-not-set.png" medium="image"> <media:title type="html">google-analytics-udv-not-set</media:title> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2009/02/google-analytics-udv-not-set-125x125.png" /> </media:content> </item> <item><title>Easily get your Google Analytics account ID</title><link>http://yoast.com/easily-google-analytics-account-id/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=easily-google-analytics-account-id</link> <comments>http://yoast.com/easily-google-analytics-account-id/#comments</comments> <pubDate>Thu, 22 Jan 2009 22:52:42 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[Google Analytics]]></category><guid
isPermaLink="false">http://yoast.com/?p=1337</guid> <description><![CDATA[<p>Ok I'm kinda bummed: why doesn't Google just add a field to Google Analytics that gives you the account ID, instead of telling people who want to track Google sites to extract the account ID from the javascript code... Well I'm here to make it easier for you people. Paste the code that Google gave [...]</p><p><a
href="http://yoast.com/easily-google-analytics-account-id/">Easily get your Google Analytics account ID</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>Ok I'm kinda bummed: why doesn't Google just add a field to Google Analytics that gives you the account ID, instead of telling people who want to <a
href="http://analytics.blogspot.com/2009/01/tracking-google-sites-with-analytics.html">track Google sites</a> to extract the account ID from the javascript code...</p><p>Well I'm here to make it easier for you people. Paste the code that Google gave you into the textarea below, and click this button: <button
onclick="javascript:get_UA();">get account id</button></p><p><script type="text/javascript" charset="utf-8">function get_UA() {txt = document.getElementById('scripttag').value;var matches = txt.match(/(UA-[\d-]+)/);if (matches[1]) {alert(matches[1]);}}</script><textarea name="script" cols="60" id="scripttag" rows="10"></textarea></p><p>Now Google Analytics team, if you're reading this, this isn't hard, here's the code, feel free to use it:</p><pre lang="htm">&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;<br />
function get_UA() {<br />
	txt = document.getElementById(&#x27;scripttag&#x27;).value;<br />
	var matches = txt.match(/(UA-[\d-]+)/);<br />
	if (matches[1]) {<br />
		alert(matches[1]);<br />
	}<br />
}<br />
&lt;/script&gt;<br />
&lt;textarea name=&quot;script&quot; cols=&quot;40&quot; id=&quot;scripttag&quot; rows=&quot;10&quot;&gt;&lt;/textarea&gt;<br />
&lt;button onclick=&quot;javascript:get_UA();&quot;&gt;get account id&lt;/button&gt;[/code]</p>
<p>That's a whole lot easier than telling people how to extract their UA code, isn't it?</p>
<p><a href="http://yoast.com/easily-google-analytics-account-id/">Easily get your Google Analytics account ID</a> is a post by <a rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a href="http://yoast.com">Yoast - Tweaking Websites</a>. 

A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded>
			<wfw:commentRss>http://yoast.com/easily-google-analytics-account-id/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
	
	</item>
		<item>
		<title>The analytics issue with Twitter</title>
		<link>http://yoast.com/twitter-analytics/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=twitter-analytics</link>
		<comments>http://yoast.com/twitter-analytics/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 23:01:51 +0000</pubDate>
		<dc:creator>Joost de Valk</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://yoast.com/?p=1334</guid>
		<description><![CDATA[<p>Twitter is great for traffic, but just how great it is, well, you'll never really know. Why not? You'll ask. Well, the only traffic you'll see coming from Twitter is traffic that comes through Twitters web interface. And most people I know don't use the web interface, they use desktop and / or phone clients. [...]</p><p><a href="http://yoast.com/twitter-analytics/">The analytics issue with Twitter</a> is a post by <a rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a href="http://yoast.com">Yoast - Tweaking Websites</a>. 

A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description>
			<content:encoded><![CDATA[<div style="float:right; margin: 0 0 5px 5px;">%MINIFYHTMLe7d6d615122b43010b79269204828a5e1%%MINIFYHTMLe7d6d615122b43010b79269204828a5e2%</div>
<p>Twitter is great for traffic, but just how great it is, well, you'll never really know. Why not? You'll ask. Well, the only traffic you'll see coming from Twitter is traffic that comes through Twitters web interface. And most people I know don't use the web interface, they use desktop and / or phone clients. Because these clients aren't browsers, they won't pass along a referrer, and thus register as "direct traffic".</p>
<p>I won't even try to estimate what percentage of Twitter usage goes through the API, although I've heard people say it's up to 80 or even 90%, although <a href="http://tweetstats.com/twitter_stats">Twitter Stats</a> seems to report it as around 50%, and <a href="http://twitstat.com/twitterclientusers.html">Twitstat.com as 60%</a>. So you're getting a lot of clicks that look like "direct traffic" in your Analytics, but are in fact, not direct traffic. These people will behave differently than normal people who come to your site directly.</p>
<p>In an effort to improve the reliability of my Google Analytics stats a bit, I've decided to start adding Google Analytics campaign, medium and source variables to all my own tweets in which I promote my own posts. I know from <a href="http://cli.gs/">cli.gs</a>, the URL shortening service I tend to use, that my tweeted links get up to 300 clicks each, and I'd love to track the behavior of those people on my site.</p>
<p>So I've made a small "in between" script that I can use in a bookmarklet. What it does is simple: </p>
<ol>
<li>it grabs the URL and title from the request</li>
<li>it adds the UTM variables <code>?utm_campaign=twitter&amp;utm_medium=twitter&amp;utm_source=twitter</code></li>
<li>it does a request to cli.gs through its API to create a shorturl</li>
<li>it then redirects to twitter.com/home with the status set to that shorturl</li>
</ol>
<p>Download the script <a href="http://cdn2.yoast.com/wp-content/uploads/2009/01/clig.txt">here</a>, and then modify this bookmarklet to use it:</p>
<pre class="brush: jscript; title: ; notranslate">javascript:(function()%7B%20window.open(&amp;#x27;http://www.example.com/clig.php?url=&amp;#x27;+encodeURIComponent(location.href)+&amp;#x27;&amp;amp;utm&amp;amp;title=&amp;#x27;+encodeURIComponent(document.title));%20%7D)();</pre><p>Set <em>example.com</em> to the domain name and path where you uploaded it.</p><p>This should allow you to create shorturls with the campaign tags in it, and thus track those tweeted links in your own analytics!</p><p><a
href="http://yoast.com/twitter-analytics/">The analytics issue with Twitter</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/twitter-analytics/feed/</wfw:commentRss> <slash:comments>71</slash:comments> </item> <item><title>A Rankings Filter in Analytics: the video</title><link>http://yoast.com/rankings-filter-analytics-video/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rankings-filter-analytics-video</link> <comments>http://yoast.com/rankings-filter-analytics-video/#comments</comments> <pubDate>Sun, 18 Jan 2009 07:06:01 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[Google Analytics]]></category><guid
isPermaLink="false">http://yoast.com/?p=1332</guid> <description><![CDATA[<p>Because André's excellent post raised a couple of questions, I decided to do a video on how to implement the rankings filter. It explains how to do the first and second filter André mentioned in his post, I've added a third filter to lowercase the campaign term, and the final filter is André's awesome add [...]</p><p><a
href="http://yoast.com/rankings-filter-analytics-video/">A Rankings Filter in Analytics: the video</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>Because <a
href="http://yoast.com/track-seo-rankings-google-analytics/">André's excellent post</a> raised a couple of questions, I decided to do a video on how to implement the rankings filter. It explains how to do the first and second filter André mentioned in his post, I've added a third filter to lowercase the campaign term, and the final filter is André's awesome add ranking to keyword filter. Check out the video, and if you have any other questions, please ask them in the comments:</p><p><noframes><embed
src="http://vimeo.com/moogaloop.swf?clip_id=2863628" type="application/x-shockwave-flash" width="400" height="300"></embed></noframes><iframe
src="http://player.vimeo.com/video/2863628" width="580" height="326" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></p><p>By the way: the explanation was done on the account for the site <a
href="http://www.topkinderboek.nl/">top kinderboek</a>. This is a site we work on at OrangeValley, you can buy children's books there, and all the profit from it goes to charity!</p><p>The code to copy paste for the fourth filter:</p><ol><li>Field A, campaign term:<pre class="brush: plain; title: ; notranslate">(.*)</pre></li><li>Field B, referral:<pre class="brush: plain; title: ; notranslate">(?|&amp;amp;)(start|b|first)=([^&amp;amp;]*)</pre></li><li>Output, user defined:<pre class="brush: plain; title: ; notranslate">$A1 (page: $B3)</pre></li></ol><p><a
href="http://yoast.com/rankings-filter-analytics-video/">A Rankings Filter in Analytics: the video</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/rankings-filter-analytics-video/feed/</wfw:commentRss> <slash:comments>23</slash:comments> <media:content url="http://www.vimeo.com/moogaloop.swf?clip_id=2863628" duration="218"> <media:player url="http://www.vimeo.com/moogaloop.swf?clip_id=2863628" /> <media:title type="html">A Rankings Filter in Analytics: the video &#8226; Yoast</media:title> <media:description type="html">Because André&#039;s excellent post raised a couple of questions, I decided to do a video on how to implement the rankings filter. It explains how to do the first and second filter André mentioned in his post, I&#039;ve added a third filter to lowercase the campaign term, and the final filter is André&#039;s aw</media:description> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2012/01/a-rankings-filter-in-analytics-the-video-8226-yoast.jpg" /> <media:keywords>Analytics,Google Analytics</media:keywords> </media:content> </item> <item><title>Track SEO rankings with Google Analytics</title><link>http://yoast.com/track-seo-rankings-google-analytics/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=track-seo-rankings-google-analytics</link> <comments>http://yoast.com/track-seo-rankings-google-analytics/#comments</comments> <pubDate>Mon, 05 Jan 2009 22:17:19 +0000</pubDate> <dc:creator>André Scholten</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[SEO]]></category> <category><![CDATA[Google Analytics]]></category> <category><![CDATA[Local Search]]></category> <category><![CDATA[Rankings]]></category><guid
isPermaLink="false">http://yoast.com/?p=1319</guid> <description><![CDATA[<p>Some months ago I created a Google Analytics filter that enables you to track your Google rankings. On my own Google Analytics blog I blogged about it and saw there was more interest in it then usual. Joost walked by and offered me to do a guest post on this subject. So here he goes: [...]</p><p><a
href="http://yoast.com/track-seo-rankings-google-analytics/">Track SEO rankings with Google Analytics</a> is a post by <a
rel="author" href="http://yoast.com/author/andre/">André Scholten</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p><a
href="http://www.semmys.org/2010/analytics-2010-winner/"><img
class="alignright" src="http://www.semmys.org/dm/badges/10/LBru.gif" alt="2010 SEMMY Runner-Up" /></a>Some months ago I created a Google Analytics filter that enables you to track your Google rankings. On my own <a
href="http://andrescholten.net">Google Analytics blog</a> I <a
href="http://andrescholten.net/seo-rankings-meten-met-google-analytics/">blogged</a> about it and saw there was more interest in it then usual. <a
href="http://yoast.com">Joost</a> walked by and offered me to do a guest post on this subject. So here he goes:</p><h2>Track SEO rankings?</h2><p>Well, you can't specifically track the exact position of the keyword that was clicked like you can do with AdWords. But it is possible to determine the page he was on. A ranking tool can tell you over and over again that a certain keyword is around position 15 in Google while Google Analytics claims he is on page 1 (position 1 to 10). This effect can come from 'personalized search' or 'local results' that can influence the Google rankings dramatically. People see other results than you see with your ranking tools. And therefore you need Google Analytics to do the real ranking.</p><h2>Setup the filter</h2><p>To get the rankings in your Google Analytics reports you have to create a new filter:</p><div
style="text-align:center"><img
src="http://cdn3.yoast.com/wp-content/uploads/2009/01/analytics-google-ranking.png" alt="analytics google ranking" class="alignnone size-full wp-image-1320" /></div><p>The title of the filter contains a 3, that's because filter 1 and 2 take care of filtering out everything else than Google Organic traffic. So yes: you also have to create a new profile to apply these filters on to be sure you don't screw up your main profile.</p><p>This filter only works for Google. if you want it to work for Yahoo and Live Search also, make sure you change the filters 1 and 2 so they accept Organic from all three of them. Then setup the filter like this:</p><div
style="text-align:center"><img
src="http://cdn.yoast.com/wp-content/uploads/2009/01/analytics-ranking.png" alt="analytics ranking" class="alignnone size-full wp-image-1321" /></div><h2>The ranking results</h2><p>After a while the "User Defined" report will look like this (ignore the language):</p><div
style="text-align:center"><img
src="http://cdn2.yoast.com/wp-content/uploads/2009/01/rankings-example.png" alt="rankings example" class="alignnone size-full wp-image-1322" /></div><p>What you see are not the actual rankings, but the number of the first result of the page the keyword was on. So when you see 20, it means the keyword was on the third page, and a 50 means the sixth page. (Yahoo and Live Search will report 21 and 51 in stead of 20 and 50).</p><p>When you don't see a number but only "(page: ): it means the keyword was on the first page. So  perhaps it is better to change "page:" to "minimal position;", I leave that up to you.</p><p>If you want to filter the list of keywords on  keywords with at least a page 2 position you can use "(page: d{2,3})" in the filter field below the list. The d stands for digits, and the 2,3 for the amount of digits you're looking for.</p><p>Enjoy.</p><p><a
href="http://yoast.com/track-seo-rankings-google-analytics/">Track SEO rankings with Google Analytics</a> is a post by <a
rel="author" href="http://yoast.com/author/andre/">André Scholten</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/track-seo-rankings-google-analytics/feed/</wfw:commentRss> <slash:comments>202</slash:comments> <media:thumbnail url="http://www.semmys.org/dm/badges/10/LBru.gif" /> <media:content url="http://www.semmys.org/dm/badges/10/LBru.gif" medium="image"> <media:title type="html">2010 SEMMY Runner-Up</media:title> </media:content> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2009/01/analytics-google-ranking.png" medium="image"> <media:title type="html">analytics google ranking</media:title> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2009/01/analytics-google-ranking-125x125.png" /> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/01/analytics-ranking.png" medium="image"> <media:title type="html">analytics ranking</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/01/analytics-ranking-125x125.png" /> </media:content> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2009/01/rankings-example.png" medium="image"> <media:title type="html">rankings example</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/01/rankings-example-125x125.png" /> </media:content> </item> <item><title>Technorati Pepper for Mint</title><link>http://yoast.com/technorati-mint-pepper/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=technorati-mint-pepper</link> <comments>http://yoast.com/technorati-mint-pepper/#comments</comments> <pubDate>Tue, 18 Nov 2008 22:42:47 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Analytics]]></category> <category><![CDATA[Mint]]></category><guid
isPermaLink="false">http://yoast.com/?p=1287</guid> <description><![CDATA[<p>I've been playing with the thought of developing a Pepper for Mint for ages, but never got to it. Tonight I decided to do it, and it turned out to be incredibly easy! So I've developed a Pepper that has two panes, one displays your Technorati scores like this: The other displays the latest links [...]</p><p><a
href="http://yoast.com/technorati-mint-pepper/">Technorati Pepper for Mint</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></description> <content:encoded><![CDATA[<p>I've been playing with the thought of developing a Pepper for Mint for ages, but never got to it. Tonight I decided to do it, and it turned out to be incredibly easy!</p><p>So I've developed a Pepper that has two panes, one displays your Technorati scores like this:</p><p><img
src="http://cdn3.yoast.com/wp-content/uploads/2008/11/technorati-scores.png" alt="technorati scores" width="374" height="110" /></p><p>The other displays the latest links Technorati has found for your blog, like this:</p><p><img
src="http://cdn.yoast.com/wp-content/uploads/2008/11/technorati-links.png" alt="technorati links.png" width="378" height="360" /></p><p>I used the <a
href="http://kailashnadh.name/ducksoup/">Duck Soup</a> Technorati API library to do this, and have to say it's very easy to use.</p><p>Download it <a
href="http://cdn.yoast.com/wp-content/uploads/2008/11/technorati-pepper.zip">here</a>.</p><p><a
href="http://yoast.com/technorati-mint-pepper/">Technorati Pepper for Mint</a> is a post by <a
rel="author" href="http://yoast.com/author/joost/">Joost de Valk</a> on <a
href="http://yoast.com">Yoast - Tweaking Websites</a>.A good WordPress blog needs good hosting, you don't want your blog to be slow, or, even worse, down, do you? Check out my thoughts on <a
href="http://yoast.com/wordpress-hosting/">WordPress hosting</a>!</p>]]></content:encoded> <wfw:commentRss>http://yoast.com/technorati-mint-pepper/feed/</wfw:commentRss> <slash:comments>14</slash:comments> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2008/11/technorati-scores.png" /> <media:content url="http://cdn3.yoast.com/wp-content/uploads/2008/11/technorati-scores.png" medium="image"> <media:title type="html">technorati scores</media:title> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2008/11/technorati-links.png" medium="image"> <media:title type="html">technorati links.png</media:title> </media:content> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 38/136 queries in 0.029 seconds using apc
Object Caching 6916/7177 objects using apc
Content Delivery Network via cdn.yoast.com

Served from: yoast.com @ 2012-05-16 23:32:38 -->
