<?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; Clicky</title> <atom:link href="http://yoast.com/tag/clicky/feed/" rel="self" type="application/rss+xml" /><link>http://yoast.com</link> <description>Tweaking Websites</description> <lastBuildDate>Mon, 21 May 2012 18:33:54 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.4-beta4-20825</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> <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>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>Clicky Tracking for WordPress</title><link>http://yoast.com/clicky-tracking-wordpress/#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=clicky-tracking-wordpress</link> <comments>http://yoast.com/clicky-tracking-wordpress/#comments</comments> <pubDate>Fri, 30 Oct 2009 10:00:51 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[Clicky]]></category> <category><![CDATA[WordPress Plugins]]></category><guid
isPermaLink="false">http://yoast.com/?p=1671</guid> <description><![CDATA[<p>The guys at Clicky recently wrote a post asking someone to re-develop their WordPress plugin. Since I have quite a bit of code lying around for what they needed, I emailed them and told them I'd be happy to build it. If you don't know Clicky, you really should check it out, it's a pretty [...]</p><p><a
href="http://yoast.com/clicky-tracking-wordpress/">Clicky Tracking 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><a
class="track clicky_log_outbound" href="http://yoast.com/out/clicky/"><img
src="http://cdn.yoast.com/wp-content/uploads/2009/10/clicky.gif" alt="Clicky" title="Clicky" width="204" height="69" class="alignright size-full wp-image-1674" /></a>The guys at <a
class="track clicky_log_outbound" href="http://yoast.com/out/clicky/">Clicky</a> recently wrote a post asking someone to <a
href="http://getclicky.com/blog/178/1000-for-a-new-clicky-wordpress-plugin">re-develop their WordPress plugin</a>. Since I have quite a bit of code lying around for what they needed, I emailed them and told them I'd be happy to build it. If you don't know Clicky, you really should <a
class="track clicky_log_outbound" href="http://yoast.com/out/clicky/">check it out</a>, it's a pretty solid analytics package with some cool realtime features, be warned though: their "Spy" feature is quite addictive...</p><p><strong>Update:</strong> the plugin is now out of beta and on wordpress.org, search for Clicky in your backend and install it, or download it from the <a
href="http://clicky.me/plugin">Clicky plugin page on WordPress.org</a>!</p><p>For a 1.0, this plugin has a pretty decent feature set:</p><ul><li>Automatically adding your Clicky tracking code everywhere:<ul><li>Option to ignore admins</li><li>Option to store names of commenters</li><li>Option to track posts &amp; pages as goals and assign a revenue to that page or post</li></ul></li><li>An overview of your site's statistics on your dashboard</li><li>Integration with the <a
href="http://clicky.me">Clicky.me Short URL service</a>:<ul><li>Automatically create a short link for each now post and page</li><li>Option to automatically tweet posts and pages on publish</li></ul></li></ul><p>It's using my backend class for it's admin UI, so it looks nice and clean (click for larger version):</p><p><a
class="thickbox" rel="clicky"  href="http://cdn2.yoast.com/wp-content/uploads/2009/10/clicky-config.png" title="Clicky configuration page"><img
src="http://cdn3.yoast.com/wp-content/uploads/2009/10/clicky-config-300x209.png" alt="Clicky configuration page " title="Clicky configuration page " width="300" height="209" class="aligncenter size-medium wp-image-1675" /></a></p><p>And it adds a box to your edit post / edit page screen in which you can decide to Tweet the post or not if you've got those settings enabled and define the goal tracking variables:</p><p><a
class="thickbox" rel="clicky" title="Clicky box on edit post and edit page screen" href="http://cdn2.yoast.com/wp-content/uploads/2009/10/clicky-meta-box.png"><img
src="http://cdn2.yoast.com/wp-content/uploads/2009/10/clicky-meta-box-125x125.png" alt="Clicky box on edit post and edit page screen" title="Clicky box on edit post and edit page screen" width="125" height="125" class="aligncenter size-thumbnail wp-image-1679" /></a></p><p><a
href="http://yoast.com/clicky-tracking-wordpress/">Clicky Tracking 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/clicky-tracking-wordpress/feed/</wfw:commentRss> <slash:comments>47</slash:comments> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/10/clicky-125x69.gif" /> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/10/clicky.gif" medium="image"> <media:title type="html">clicky</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/10/clicky-125x69.gif" /> </media:content> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2009/10/clicky-config.png" medium="image"> <media:title type="html">Clicky configuration page</media:title> <media:thumbnail url="http://cdn3.yoast.com/wp-content/uploads/2009/10/clicky-config-125x125.png" /> </media:content> <media:content url="http://cdn2.yoast.com/wp-content/uploads/2009/10/clicky-meta-box.png" medium="image"> <media:title type="html">Clicky box on edit post and edit page screen</media:title> <media:thumbnail url="http://cdn2.yoast.com/wp-content/uploads/2009/10/clicky-meta-box-125x125.png" /> </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 11/40 queries in 0.010 seconds using apc
Object Caching 2058/2114 objects using apc
Content Delivery Network via cdn.yoast.com

Served from: yoast.com @ 2012-05-23 10:05:39 -->
