<?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>YoastSocial Media - Archives - Yoast - Tweaking Websites</title> <atom:link href="http://yoast.com/cat/social-media/feed/" rel="self" type="application/rss+xml" /><link>http://yoast.com</link> <description>Tweaking Websites</description> <lastBuildDate>Thu, 02 Sep 2010 14:00:08 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <image><title>Yoast</title> <url>http://cdn.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>URLs, social media and campaign tracking</title><link>http://yoast.com/canonical-urls-social-media-campaign-tracking/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=canonical-urls-social-media-campaign-tracking</link> <comments>http://yoast.com/canonical-urls-social-media-campaign-tracking/#comments</comments> <pubDate>Fri, 20 Aug 2010 13:22:52 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[SEO]]></category> <category><![CDATA[Social Media]]></category> <category><![CDATA[Google Analytics]]></category><guid
isPermaLink="false">http://yoast.com/?p=2902</guid> <description><![CDATA[<p>Canonicalizing URLs is a very important  aspect of Search Engine Optimization but also of Social Media Marketing. This morning, when checking my feeds, I noticed an example that I thought could help you understand the what and the why of it. What I noticed was this: Smashing Magazine had put out one of their usually [...]</p><p><a
href="http://yoast.com/canonical-urls-social-media-campaign-tracking/">URLs, social media and campaign tracking</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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>Canonicalizing URLs is a very important  aspect of Search Engine Optimization but also of Social Media Marketing. This morning, when checking my feeds, I noticed an example that I thought could help you understand the what and the why of it. What I noticed was this: Smashing Magazine had put out one of their usually very popular "100 ... WordPress themes" posts. This time called: <a
href="http://www.smashingmagazine.com/2010/08/19/100-free-high-quality-wordpress-themes-for-2010/">100 Free High Quality WordPress Themes: 2010 Edition</a>. Now, don't get me wrong, there's absolutely nothing wrong with that post.</p><p><img
src="http://cdn.yoast.com/wp-content/uploads/2010/08/oops.jpg" alt="" title="oops" width="250" height="166" class="alignright size-full wp-image-2907" />There <em>is</em> something wrong however, with how this post is being treated by several social networks. First of all, there's Delicious. Check out <a
rel="nofollow" href="http://www.delicious.com/search?p=100+Free+High+Quality+WordPress+themes+2010+smashing&amp;chk=&amp;fr=del_icio_us&amp;lc=1&amp;sd=1M&amp;atags=&amp;rtags=&amp;context=all%7C%7C">this search</a>; it'll show you Delicious has 12 different URLs for the same post. While the proper URL for the post has the most bookmarks, as much as 15% of all the bookmarks are for "wrong" versions of the URL. This means that the post could, in later searches on Delicious, do 15% better if the URL had been canonicalized / standardized properly, in other words, if all this stuff had been redirected to the proper URL.</p><p>Those wrong URLs are basically divided in 2 groups: StumbleUpon "framed" URLs and FeedBurner or otherwise "campaign tagged" URLs. Let's go through these groups one by one, and see if we can solve this.</p><h2>StumbleUpon framed URLs</h2><p>I very much dislike the fact that Delicious doesn't understand these URLs. Delicious should be able to "stab" through a URL like that, and then bookmark the proper URL. But I also actually dislike the way StumbleUpon puts a frame around URLs. Somehow, when Digg did this, it created an outrage, but if StumbleUpon does it, it's fine. Now their goals might be different, but I still dislike it. The "rough" solution is simple: add a frame breaker to your blog:</p><div
class="wp_syntax"><div
class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
if (top !== self) top.location.href = self.location.href;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div><p>The issue is that doing this would prevent people from voting up your site on Stumble, something you might actually want to happen. The second solution is adding a visible delicious button to your site so people can bookmark the post through that button, using the proper version of the URL. It's not as safe, but it might work for a part of the group that made the wrong bookmarks in the first place.</p><h2>Google Campaign tagged URLs</h2><p>These are the URLs that annoy me most. FeedBurner has the quite awesome option to <a
href="http://adsenseforfeeds.blogspot.com/2009/11/afternoon-frank-hey-howdy-george.html">campaign tag your posts</a>, which means that it'll add variables to your URLs like this:</p><pre>?utm_source=feedburner&#038;utm_medium=feed&#038;utm_campaign=Feed%3A+SmashingMagazine</pre><p>Those give some awesome insight into where your readers come from, and it's a feature I'd hate to miss. However there's one issue with it, and it's in the very first part of that string: it's the question mark. The question mark has a real meaning in URLs: it allows you to add parameters to a URL. For that reason Google and other search engines, as well as sites like Delicious, can't automatically strip these off. There <em>is</em>, however, a very nice solution to this problem: campaign tracking using a hashtag.</p><p>This requires you to use the <a
href="http://code.google.com/apis/analytics/docs/gaJS/gaJSApiCampaignTracking.html#_gat.GA_Tracker_._setAllowAnchor"><code>setAllowAnchor()</code> function</a> within your tracking code. After you've added that to your tracking code, you can now use <code>#utm_source</code> instead of <code>?utm_source</code>, and suddenly the world looks much cleaner and nicer. Of course there's a small issue left: FeedBurner still uses the question mark based tracking. This is fixed by redirecting the question mark based campaign tagger URLs to the hash tag based ones.</p><p>This may all seem a bit daunting, but I've got some good news: if you use my <a
href="http://yoast.com/wordpress/google-analytics/">Google Analytics for WordPress</a> plugin, all you have to do is check a box under the advanced settings:</p><p><img
src="http://cdn.yoast.com/wp-content/uploads/2010/08/hash-tagged-tracking.png" alt="" title="hash-tagged-tracking" width="533" height="75" class="aligncenter size-full wp-image-2904" /></p><p>It will then automatically add the needed code and redirect all campaign URLs. Just another step towards a better optimized site, as this should prevent sites like delicious from bookmarking the wrong URL.</p><p><a
href="http://yoast.com/canonical-urls-social-media-campaign-tracking/">URLs, social media and campaign tracking</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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/canonical-urls-social-media-campaign-tracking/feed/</wfw:commentRss> <slash:comments>16</slash:comments> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2010/08/oops-125x125.jpg" /> <media:content url="http://cdn.yoast.com/wp-content/uploads/2010/08/oops.jpg" medium="image"> <media:title type="html">oops</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2010/08/oops-125x125.jpg" /> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2010/08/hash-tagged-tracking.png" medium="image"> <media:title type="html">hash-tagged-tracking</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2010/08/hash-tagged-tracking-125x75.png" /> </media:content> </item> <item><title>Join Yoast on Facebook</title><link>http://yoast.com/yoast-facebook/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=yoast-facebook</link> <comments>http://yoast.com/yoast-facebook/#comments</comments> <pubDate>Thu, 22 Apr 2010 14:43:40 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Social Media]]></category> <category><![CDATA[facebook]]></category><guid
isPermaLink="false">http://yoast.com/?p=2232</guid> <description><![CDATA[<p>I've been a bit slow on picking up on Facebook, I've had an account for ages but Yoast.com never had a Facebook fan page. My buddy Roy kept poking me though and telling me that I was missing out. So now it has: Yoast on Facebook. So I would really like if you join me [...]</p><p><a
href="http://yoast.com/yoast-facebook/">Join Yoast on Facebook</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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.facebook.com/yoastcom"><img
src="http://cdn.yoast.com/wp-content/uploads/2010/04/facebook-300x237.jpg" alt="" title="Facebook" width="300" height="237" class="alignright size-medium wp-image-2233" /></a>I've been a bit slow on picking up on Facebook, I've had an account for ages but Yoast.com never had a Facebook fan page. My buddy <a
href="http://www.chapter42.com/">Roy</a> kept poking me though and telling me that I was missing out.</p><p>So now it has: <a
href="http://www.facebook.com/yoastcom">Yoast on Facebook</a>. So I would really like if you join me there, either directly through the link before or by just clicking Like on the widget in the sidebar below :)</p><p><a
href="http://yoast.com/yoast-facebook/">Join Yoast on Facebook</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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/yoast-facebook/feed/</wfw:commentRss> <slash:comments>10</slash:comments> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2010/04/facebook-125x125.jpg" /> <media:content url="http://cdn.yoast.com/wp-content/uploads/2010/04/facebook.jpg" medium="image"> <media:title type="html">Facebook</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2010/04/facebook-125x125.jpg" /> </media:content> </item> <item><title>Google FriendConnect API</title><link>http://yoast.com/google-friendconnect-api/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=google-friendconnect-api</link> <comments>http://yoast.com/google-friendconnect-api/#comments</comments> <pubDate>Thu, 12 Mar 2009 14:17:57 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Social Media]]></category> <category><![CDATA[friendconnect]]></category> <category><![CDATA[Google]]></category><guid
isPermaLink="false">http://yoast.com/?p=1428</guid> <description><![CDATA[<p>I've been following the #pubcon conversation with interest, and here is the official announcement :). All I can say... look here. Thanks to Matt and Anindo of Google for their help on this!</p><p><a
href="http://yoast.com/google-friendconnect-api/">Google FriendConnect API</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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
src="http://cdn.yoast.com/wp-content/uploads/2009/03/friendconnect-logo.gif" alt="friendconnect-logo" title="friendconnect-logo" width="163" height="54" class="alignright size-full wp-image-1424" />I've been following the <a
href="http://search.twitter.com/search?q=%23pubcon">#pubcon conversation</a> with interest, and here is the <a
href="http://googlesocialweb.blogspot.com/2009/03/introducing-google-friend-connect-api.html">official announcement</a> :). All I can say... look <a
href="http://yoast.com/wordpress/friendconnect/">here</a>. Thanks to Matt and Anindo of Google for their help on this!</p><p><a
href="http://yoast.com/google-friendconnect-api/">Google FriendConnect API</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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-friendconnect-api/feed/</wfw:commentRss> <slash:comments>79</slash:comments> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/03/friendconnect-logo-125x54.gif" /> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/03/friendconnect-logo.gif" medium="image"> <media:title type="html">friendconnect-logo</media:title> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/03/friendconnect-logo-125x54.gif" /> </media:content> </item> <item><title>The analytics issue with Twitter</title><link>http://yoast.com/twitter-analytics/#utm_source=rss&amp;utm_medium=rss&amp;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 from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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;"></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://cdn.yoast.com/wp-content/uploads/2009/01/clig.txt">here</a>, and then modify this bookmarklet to use it:</p><div
class="wp_syntax"><div
class="code"><pre class="js" style="font-family:monospace;">javascript:(function()%7B%20window.open('http://www.example.com/clig.php?url='+encodeURIComponent(location.href)+'&amp;utm&amp;title='+encodeURIComponent(document.title));%20%7D)();</pre></div></div><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 from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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>TwitterCounter Dashboard Widget</title><link>http://yoast.com/twittercounter-dashboard-widget/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=twittercounter-dashboard-widget</link> <comments>http://yoast.com/twittercounter-dashboard-widget/#comments</comments> <pubDate>Sat, 03 Jan 2009 20:15:02 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Social Media]]></category> <category><![CDATA[Twitter]]></category><guid
isPermaLink="false">http://yoast.com/?p=1316</guid> <description><![CDATA[<p>I've recently had some fun with developing the TwitterCounter API (to which we've added Twitter Rank yesterday) and my first Mint Pepper for it, and I decided it was time to add another milestone to my development career. I'd never developed Widgets for Apple's Dashboard yet, but I had seen Dashcode, and that it seemed [...]</p><p><a
href="http://yoast.com/twittercounter-dashboard-widget/">TwitterCounter Dashboard Widget</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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 recently had some fun with developing the <a
href="http://twittercounter.com/?inc=api">TwitterCounter API</a> (to which we've added Twitter Rank yesterday) and my first <a
href="http://yoast.com/twittercounter-api/">Mint Pepper</a> for it, and I decided it was time to add another milestone to my development career.</p><p>I'd never developed Widgets for Apple's Dashboard yet, but I had seen <a
href="http://twittercounter.com/?inc=api">Dashcode</a>, and that it seemed pretty easy to use. So I started going about developing a TwitterCounter Dashboard widget, and well, I succeeded. It looks like this:</p><p><img
src="http://cdn.yoast.com/wp-content/uploads/2009/01/twittercounter-dashboard-widget.png" alt="twittercounter dashboard widget" width="308" height="159" /></p><p>You can download it <a
href="http://cdn.yoast.com/wp-content/uploads/2009/01/TwitterCounter.wdgt.zip" rel="nofollow">here</a>.</p><p>Mac OS X 10.4 Tiger is required. If you're using Safari, click the download link. When the widget download is complete, Show Dashboard, click the Plus sign to display the Widget Bar and click the widget's icon in the Widget Bar to open it. If you're using a browser other than Safari, click the download link. When the widget download is complete, unarchive it and place it in /Library/Widgets/ in your home folder. Show Dashboard, click the Plus sign to display the Widget Bar and click the widget's icon in the Widget Bar to open it.</p><p><a
href="http://yoast.com/twittercounter-dashboard-widget/">TwitterCounter Dashboard Widget</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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/twittercounter-dashboard-widget/feed/</wfw:commentRss> <slash:comments>14</slash:comments> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2009/01/twittercounter-dashboard-widget.png" /> <media:content url="http://cdn.yoast.com/wp-content/uploads/2009/01/twittercounter-dashboard-widget.png" medium="image"> <media:title type="html">twittercounter dashboard widget</media:title> </media:content> </item> <item><title>The power of Twitter (clients) exposed</title><link>http://yoast.com/twitter-clients/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=twitter-clients</link> <comments>http://yoast.com/twitter-clients/#comments</comments> <pubDate>Sat, 03 Jan 2009 09:54:12 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Social Media]]></category> <category><![CDATA[Twitter]]></category><guid
isPermaLink="false">http://yoast.com/?p=1314</guid> <description><![CDATA[<p>This story shows the power of Twitter and how you should always be prepared for major traffic spikes. Last night, in the beginning of the evening, @michielb twittered that he made a list of most used Twitter clients. I thought it looked pretty cool and asked him if that was measured by unique users or [...]</p><p><a
href="http://yoast.com/twitter-clients/">The power of Twitter (clients) exposed</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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>This story shows the power of Twitter and how you should always be prepared for major traffic spikes.</p><p>Last night, in the beginning of the evening, <a
href="http://twitter.com/michielb">@michielb</a> twittered that he made a list of most used Twitter clients. I thought it looked pretty cool and asked him if that was measured by unique users or total tweets. He said it was by amount of tweets, to which I responded I'd like to know which clients users twittered the most, eg. which client makes twittering the easiest.</p><p>He immediately went ahead and added that to the <a
href="http://twitstat.com/twitterclientusers.html">Twitter Clients list</a>, which I <a
href="http://twitter.com/jdevalk/status/1092164736">tweeted</a> about to my followers:</p><blockquote><p>Twitter addicts, check the cool stats @michielb made, ranking twitter clients: <a
href="http://cli.gs/bPdnqP">http://cli.gs/bPdnqP</a> twitterberry users are most active :)</p></blockquote><p>This tweet got retweeted a couple of times, resulting in a total of 84 clicks towards the list, of which 66 by humans, as counted by my favorite URL shortener of the moment: <a
href="http://cli.gs/">cli.gs</a>. A couple of minutes later, Michiel tweeted to me that he was getting an enormous amount of traffic through StumbleUpon, as shown by this traffic stat:</p><p><img
src="http://farm1.static.flickr.com/197/3161055210_8e00834fd1.jpg?v=0" alt="Traffic stats on Twitstat.com"/></p><p>Within a couple of hours of this happening, the list <a
href="http://www.techcrunch.com/2009/01/02/twitstat-study-blackberry-users-are-totally-addicted-to-twitter/">made it to TechCrunch</a>. How's that for Twitter power?</p><p>Michiel followed up on the whole story with <a
href="http://www.michielb.nl/2009/01/a_few_lessons_learned.html">a blog post of his own</a>, reflecting the lessons learned in this small experiment: the navigation on that list was poor, he didn't get <em>anything</em> out of it other than some visitors to his page, where he could have been promoting his <a
href="http://twitstat.com/m/">awesome web-based twitterclient Twitstat</a>. So, if you make cool, unique content like Michiel did, make sure you prepare to get something out of it if it hits the major (tech-)news sites!</p><p><a
href="http://yoast.com/twitter-clients/">The power of Twitter (clients) exposed</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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-clients/feed/</wfw:commentRss> <slash:comments>11</slash:comments> <media:thumbnail url="http://farm1.static.flickr.com/197/3161055210_8e00834fd1.jpg?v=0" /> <media:content url="http://farm1.static.flickr.com/197/3161055210_8e00834fd1.jpg?v=0" medium="image"> <media:title type="html">Traffic stats on Twitstat.com</media:title> </media:content> </item> <item><title>TwitterCounter: the API and the Mint Pepper</title><link>http://yoast.com/twittercounter-api/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=twittercounter-api</link> <comments>http://yoast.com/twittercounter-api/#comments</comments> <pubDate>Tue, 25 Nov 2008 07:58:08 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Social Media]]></category> <category><![CDATA[Twitter]]></category><guid
isPermaLink="false">http://yoast.com/?p=1296</guid> <description><![CDATA[<p>As you know I'm a big fan of TwitterCounter, and Boris, its creator and founder is one of the few Dutch entrepreneurs I'm actually a fan of, as he really seems to get the "new" web. I emailed him last week, asking why TwitterCounter didn't have an API, and we started talking about what an [...]</p><p><a
href="http://yoast.com/twittercounter-api/">TwitterCounter: the API and the Mint Pepper</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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
src="http://twittercounter.com/images/twittercounter.png" alt="TwitterCounter logo" class="alignright" style="background-color: #ddd; padding: 10px;"/>As you know I'm a big fan of TwitterCounter, and Boris, its creator and founder is one of the few Dutch entrepreneurs I'm actually a fan of, as he really seems to get the "new" web.</p><p>I emailed him last week, asking why TwitterCounter didn't have an API, and we started talking about what an API should do. He started developing it, showed me some code, and then I offered him to develop the API myself. So I did, resulting in <a
href="http://twittercounter.com/?inc=api">this API</a>.</p><p>On top of that API Sean Hammons already <a
href="http://getclicky.com/blog/147/keep-tabs-on-your-twitter-followers-from-clicky">implemented a pane for getClicky</a>, and I myself created a Pepper for Mint. It looks like this:</p><p><img
src="http://cdn.yoast.com/wp-content/uploads/2008/11/twittercounter-stats.png" alt="twittercounter stats" width="357" height="226" /></p><p><img
src="http://cdn.yoast.com/wp-content/uploads/2008/11/twittercounter-graph.png" alt="twittercounter graph" width="358" height="363" /></p><p>Like it? Download it <a
href="http://cdn.yoast.com/wp-content/uploads/2008/11/twittercounter-pepper.zip">here</a></p><p><a
href="http://yoast.com/twittercounter-api/">TwitterCounter: the API and the Mint Pepper</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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/twittercounter-api/feed/</wfw:commentRss> <slash:comments>7</slash:comments> <media:thumbnail url="http://twittercounter.com/images/twittercounter.png" /> <media:content url="http://twittercounter.com/images/twittercounter.png" medium="image"> <media:title type="html">TwitterCounter logo</media:title> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2008/11/twittercounter-stats.png" medium="image"> <media:title type="html">twittercounter stats</media:title> </media:content> <media:content url="http://cdn.yoast.com/wp-content/uploads/2008/11/twittercounter-graph.png" medium="image"> <media:title type="html">twittercounter graph</media:title> </media:content> </item> <item><title>Twitter iPhone apps side by side</title><link>http://yoast.com/twitter-iphone-apps/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=twitter-iphone-apps</link> <comments>http://yoast.com/twitter-iphone-apps/#comments</comments> <pubDate>Mon, 17 Nov 2008 19:27:38 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Social Media]]></category> <category><![CDATA[iPhone]]></category> <category><![CDATA[Twitter]]></category><guid
isPermaLink="false">http://yoast.com/?p=1284</guid> <description><![CDATA[<p>Twitter is now officially a part of my life. I find myself checking Twitter more often then my email, and that, I guess, forces me to be smart about how I use it. I've been using Twitterific and Twinkle side by side for a while, but both annoyed me at times. They look like this: [...]</p><p><a
href="http://yoast.com/twitter-iphone-apps/">Twitter iPhone apps side by side</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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.flickr.com/photos/42284674@N00/3039028670" title="View 'Twitter apps side by side' on Flickr.com"><img
src="http://farm4.static.flickr.com/3005/3039028670_deb153a447_o.png" alt="Twitter apps side by side" width="320" height="90" align="right" /></a>Twitter is now officially a part of my life. I find myself checking Twitter more often then my email, and that, I guess, forces me to be smart about how I use it.</p><p>I've been using <a
href="http://iconfactory.com/software/twitterrific">Twitterific</a> and <a
href="http://tapulous.com/twinkle/">Twinkle</a> side by side for a while, but both annoyed me at times. They look like this:</p><div
style="margin: 10px auto; width: 350px;"> <a
href="http://www.flickr.com/photos/42284674@N00/3038165489" title="View 'Twitterific Pro' on Flickr.com"><img
src="http://farm4.static.flickr.com/3060/3038165489_e4655ca4e6_m.jpg" alt="Twitterific Pro" class="alignleft" width="160" height="240"/></a><a
href="http://www.flickr.com/photos/42284674@N00/3039002898" title="View 'Twinkle' on Flickr.com"><img
src="http://farm4.static.flickr.com/3139/3039002898_2e439f64c5_m.jpg" alt="Twinkle" style="margin-left: 10px;" class="alignleft" width="160" height="240"/></a></div><p
style="clear:both;">I was missing the easy to reach replies tab, and found both to be a tad bit slow. I remembered from <a
href="http://www.chrisbrogan.com/how-i-use-twitter-at-volume/">this post from Chris Brogan</a> that he used <a
href="http://www.stone.com/Twittelator/">Twittelator</a>, so I downloaded that and played around. It's better, but it's not as simple and solid as I want my client to be. It's color schemes look cool though, check out this one:</p><div
style="text-align:center;"> <a
href="http://www.flickr.com/photos/42284674@N00/3039003080" title="View 'Twittelator Pro' on Flickr.com"><img
src="http://farm4.static.flickr.com/3203/3039003080_81d3d729a4_m.jpg" alt="Twittelator Pro" border="0" width="160" height="240" /></a></div><p>The bad thing about it is that it takes too much screen per tweet, which makes it hard to read a lot of tweets quickly.</p><p>Now that I had installed 3 apps already, I thought what the heck, let's try the other ones. I found <a
href="http://www.naan.net/trac/wiki/TwitterFon">Twitterfon</a>, and I think this one is here to stay. It's got everything you need, from a replies and direct messages tab to your normal timeline. It supports GPS and taking pictures and search with a history of your recent searches. And, to boot, it's by far the fastest Twitter app on my iPhone to start up. It looks clean like this:</p><p><a
href="http://www.flickr.com/photos/42284674@N00/3039002746" title="View 'Twitterfon' on Flickr.com"><div
style="text-align:center;"><img
src="http://static.flickr.com/3289/3039002746_2168b9a766_m.jpg" alt="Twitterfon" border="0" width="" height="" /></div><p></a></p><p>Best thing about it? It's free!</p><p>So basically, I think Twitterfon will be my primary iPhone Twitter app for the coming months, as it seems to be everything I need from a Twitter client!</p><p><a
href="http://yoast.com/twitter-iphone-apps/">Twitter iPhone apps side by side</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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-iphone-apps/feed/</wfw:commentRss> <slash:comments>12</slash:comments> <media:thumbnail url="http://farm4.static.flickr.com/3005/3039028670_deb153a447_o.png" /> <media:content url="http://farm4.static.flickr.com/3005/3039028670_deb153a447_o.png" medium="image"> <media:title type="html">Twitter apps side by side</media:title> </media:content> <media:content url="http://farm4.static.flickr.com/3060/3038165489_e4655ca4e6_m.jpg" medium="image"> <media:title type="html">Twitterific Pro</media:title> </media:content> <media:content url="http://farm4.static.flickr.com/3139/3039002898_2e439f64c5_m.jpg" medium="image"> <media:title type="html">Twinkle</media:title> </media:content> <media:content url="http://farm4.static.flickr.com/3203/3039003080_81d3d729a4_m.jpg" medium="image"> <media:title type="html">Twittelator Pro</media:title> </media:content> <media:content url="http://static.flickr.com/3289/3039002746_2168b9a766_m.jpg" medium="image"> <media:title type="html">Twitterfon</media:title> </media:content> </item> <item><title>Easily display your last Tweet</title><link>http://yoast.com/display-latest-tweet/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=display-latest-tweet</link> <comments>http://yoast.com/display-latest-tweet/#comments</comments> <pubDate>Fri, 24 Oct 2008 14:13:45 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Social Media]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Twitter]]></category><guid
isPermaLink="false">http://yoast.com/?p=1269</guid> <description><![CDATA[<p>I wanted to show my latest tweet on the front page of this site, and although I know there are several plugins which probably could've helped me do this, I decided to see how easy the API was to use. It turned out to be incredibly easy, as long as you have PHP 5.2 or [...]</p><p><a
href="http://yoast.com/display-latest-tweet/">Easily display your last Tweet</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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 wanted to show my latest tweet on the front page of this site, and although I know there are several plugins which probably could've helped me do this, I decided to see how easy the <a
href="http://apiwiki.twitter.com/REST+API+Documentation">API</a> was to use.</p><p>It turned out to be incredibly easy, as long as you have PHP 5.2 or higher, that is.</p><p>This is the code:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span>ABSPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'wp-includes/class-snoopy.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$snoopy</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Snoopy<span style="color: #339933;">;</span>
<span style="color: #000088;">$snoopy</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://twitter.com/statuses/user_timeline/jdevalk.json?count=1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$twitterdata</span> <span style="color: #339933;">=</span> json_decode<span style="color: #009900;">&#40;</span><span style="color: #000088;">$snoopy</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">results</span><span style="color: #339933;">,</span><span style="color: #000000; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;&lt;p&gt;<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$twitterdata</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;text&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span></pre></div></div><p>As you can see, I use the Snoopy library to fetch the data, as that comes with WordPress by default.  Than I decode the JSON results by using the <code>json_decode</code> function. This is the reason you need PHP 5.2 or up, as this was only included with this version of PHP.</p><p>Next, we output it. Of course, this is a quick &#038; dirty implementation. If I got dugg now, and 1,000 people a minute came looking at that page, it should have some sort of caching in there. For now though, this is fine as it is!</p><p><strong>Update:</strong> As Kim noticed in the comments, I've added some code to automatically link any @username mentions to those usernames. Replace the last echo line above with this:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$pattern</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/\@([a-zA-Z]+)/'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$replace</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;http://twitter.com/'</span><span style="color: #339933;">.</span><span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'\1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;@\1&lt;/a&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pattern</span><span style="color: #339933;">,</span><span style="color: #000088;">$replace</span><span style="color: #339933;">,</span><span style="color: #000088;">$twitterdata</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;text&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;&lt;p&gt;<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$output</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span></pre></div></div><p>You could even decide to add <code>rel="nofollow"</code> the <code>$replace</code> if you don't want those links to give juice.</p><p><strong>Update 2:</strong> To make it even more complex, here is the entire code I now use, which excludes replies and caches the Twitter API requests so you won't overload the API:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
</pre></td><td
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span>ABSPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'wp-includes/class-snoopy.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$tweet</span>   <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;lasttweet&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$url</span>  <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://twitter.com/statuses/user_timeline/jdevalk.json?count=20&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tweet</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lastcheck'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&lt;</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">mktime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">60</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$snoopy</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Snoopy<span style="color: #339933;">;</span>
  <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$snoopy</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$twitterdata</span>   <span style="color: #339933;">=</span> json_decode<span style="color: #009900;">&#40;</span><span style="color: #000088;">$snoopy</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">results</span><span style="color: #339933;">,</span><span style="color: #000000; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$twitterdata</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'in_reply_to_user_id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$i</span><span style="color: #339933;">++;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000088;">$pattern</span>  <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/\@([a-zA-Z]+)/'</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$replace</span>  <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;http://twitter.com/'</span><span style="color: #339933;">.</span><span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'\1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;@\1&lt;/a&gt;'</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$output</span>   <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pattern</span><span style="color: #339933;">,</span><span style="color: #000088;">$replace</span><span style="color: #339933;">,</span><span style="color: #000088;">$twitterdata</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;text&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  
&nbsp;
    <span style="color: #000088;">$tweet</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lastcheck'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mktime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$tweet</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'data'</span><span style="color: #009900;">&#93;</span>    <span style="color: #339933;">=</span> <span style="color: #000088;">$output</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$tweet</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'rawdata'</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #000088;">$twitterdata</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$tweet</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'followers'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$twitterdata</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'followers_count'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    update_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'lasttweet'</span><span style="color: #339933;">,</span><span style="color: #000088;">$tweet</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;Twitter API not responding.&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tweet</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'data'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;&lt;p&gt;<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$output</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>As you can see it also saves the amount of followers you have into <code>$tweet['followers']</code>, which I then use to display this:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">&lt;p&gt;
  &lt;a href=&quot;http://twitter.com/jdevalk&quot;&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$tweet</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'followers'</span><span style="color: #009900;">&#93;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> followers on Twitter, and you?
  &lt;/a&gt;
&lt;/p&gt;</pre></div></div><p>Update 3: Another fix to automatically make all links clickable, below this line:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pattern</span><span style="color: #339933;">,</span><span style="color: #000088;">$replace</span><span style="color: #339933;">,</span><span style="color: #000088;">$twitterdata</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;text&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Add:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> make_clickable<span style="color: #009900;">&#40;</span><span style="color: #000088;">$output</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>This will use the WordPress internal <code>make_clickable</code> function to make sure that all URL's are clickable.</p><p>Enjoy!</p><p><a
href="http://yoast.com/display-latest-tweet/">Easily display your last Tweet</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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/display-latest-tweet/feed/</wfw:commentRss> <slash:comments>50</slash:comments> </item> <item><title>Leaving Onetomarket</title><link>http://yoast.com/leaving-onetomarket/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=leaving-onetomarket</link> <comments>http://yoast.com/leaving-onetomarket/#comments</comments> <pubDate>Tue, 23 Sep 2008 18:02:34 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[SEO]]></category> <category><![CDATA[Social Media]]></category> <category><![CDATA[Onetomarket]]></category> <category><![CDATA[Personal]]></category><guid
isPermaLink="false">http://yoast.com/?p=1044</guid> <description><![CDATA[<p>Typing this blog post gives me a weird feeling. I won't beat around the bush: I'm leaving Onetomarket. It's time for a new challenge, and it's time to broaden my horizon. Because of that, I will be joining a new company as of October 1st, and will be diving into another corner of online marketing. [...]</p><p><a
href="http://yoast.com/leaving-onetomarket/">Leaving Onetomarket</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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>Typing this blog post gives me a weird feeling. I won't beat around the bush: I'm leaving Onetomarket. It's time for a new challenge, and it's time to broaden my horizon. Because of that, I will be joining a new company as of October 1st, and will be diving into another corner of online marketing.</p><p>This seems like the best moment to do a short recap of what's happened in the last few years, and to see what the future will bring. Allow me to boast about <a
href="http://www.onetomarket.com/">Onetomarket</a> a bit, and tell you about what we've reached.</p><p>The last few years at Onetomarket have been like a sitting in a roller coaster, in the positive and joyful sense. Onetomarket has developed from a good but not to big online marketing agency into a European player, competing with the best in the business. Our offices in <a
href="http://www.onetomarket.es/">Spain</a> are doing great, not in the least because of the tremendous work of Lennert de Rijk there, and our <a
href="http://www.onetomarket.de/">German offices</a> are becoming more serious everyday.</p><p>At the same time we've been able to make a name for our selves at the big conferences in the search marketing and affiliate world. One of the high points of the year was <a
href="http://www.a4uexpo.com/">A4UExpo in London</a> last year, which I'll attend again this year. My buddy and colleague <a
href="http://www.royhuiskes.com/">Roy</a> will be making his first appearance as a speaker on the SEO scene there.</p><p>I've had the chance to participate in very exciting and successful projects with clients like <a
href="http://klm.com/">KLM</a> and <a
href="http://www.wegener.nl/">Wegener</a> (and many others), of which I'm very proud and have had a load of fun with.</p><p>You're probably asking yourself right now: if everything is going that well, why are you leaving? The answer is simple: my interests have widened, especially towards the social aspects of communication on the web. The chance that has been offered to me in that sector, combined with the chance to build on a new company, made me decide to leave.</p><p>To quote <a
class="clicky_log_outbound" href="http://yoast.com/out/cluetrain/">my favorite book</a>, "markets are conversations". I will be focussing on more on these conversations, and on the chances these conversations have to offer to companies.</p><p>The team I'm leaving can operate fine without me. They're the best SEO team you'll find in the Netherlands. The paid search team is great as well, and I can't even start to begin about the fantastic things a couple of relatively unknown talents are doing in the Analytics part. My leaving this company should be a trigger for them to make themselves heard a lot more!</p><p><a
href="http://www.orangevalley.nl/en/"><img
src="http://cdn.yoast.com/wp-content/uploads/2008/09/orangevalley.png" alt="orangevalley" title="orangevalley" width="197" height="143" class="alignright" /></a>And then, the future. My new job is within a company called <a
href="http://www.orangevalley.nl/en/">Orangevalley</a>. You'll be hearing a lot more about Orangevalley in the coming weeks!</p><p>I've had a great time at Onetomarket, and I'd like to thank all my colleagues for that. I'd also like to thank the management for all the trust they've placed in me. I wish Onetomarket loads of success, and will be following their development closely!</p><p><a
href="http://yoast.com/leaving-onetomarket/">Leaving Onetomarket</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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/leaving-onetomarket/feed/</wfw:commentRss> <slash:comments>17</slash:comments> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2008/09/orangevalley.png" /> <media:content url="http://cdn.yoast.com/wp-content/uploads/2008/09/orangevalley.png" medium="image"> <media:title type="html">orangevalley</media:title> </media:content> </item> <item><title>Digg submit buttons: a good idea?</title><link>http://yoast.com/digg-submit-buttons/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=digg-submit-buttons</link> <comments>http://yoast.com/digg-submit-buttons/#comments</comments> <pubDate>Mon, 18 Aug 2008 08:00:00 +0000</pubDate> <dc:creator>Joost de Valk</dc:creator> <category><![CDATA[Social Media]]></category><guid
isPermaLink="false">http://yoast.com/?p=897</guid> <description><![CDATA[<p>Lately I've noticed a lot of people using the Digg button in Sociable to submit my posts to Digg. While I appreciate the gesture, the chance of any of my "normal" posts making it to the front page of Digg is minimal. To make it to the front page, you currently need 200+ diggs. Getting [...]</p><p><a
href="http://yoast.com/digg-submit-buttons/">Digg submit buttons: a good idea?</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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
src="http://cdn.yoast.com/wp-content/uploads/2008/08/digg-icon.gif" alt="digg-icon.gif" border="0" width="205" height="193" align="right" class="alignright" />Lately I've noticed a lot of people using the Digg button in <a
href="http://yoast.com/wordpress/sociable/">Sociable</a> to submit my posts to Digg. While I appreciate the gesture, the chance of any of my "normal" posts making it to the front page of Digg is minimal.</p><p>To make it to the front page, you currently need 200+ diggs. Getting there with anything other than an <em>exceptionally</em> good and well-targeted post, or with a lot of "help" is neigh to impossible.</p><p>I was talking to my buddy Chris Winfield of <a
href="http://www.10e20.com/services/social-media-marketing.htm">Social Media Marketing firm 10e20</a> about whether it's bad for a site to be submitted too much, his answer:</p><blockquote><p>It depends on how its done. If it's very obvious spam from the same user, then, yes, it's bad for your site's performance in Digg. If it's natural - then it's no big deal.   But it also depends on what type of site it is.  If you run a widget factory and somehow everyone of your pages is getting submitted to Digg, natural looking or not - it's no good.</p></blockquote><p>That's why I've taken the Digg button out off my Sociable setup. I'd rather control a bit more what I submit to Digg and what not. Of course it doesn't prevent people from submitting, but making it a bit less easy might actually lower the amount of Digg submissions that have no chance at all of making it to the front page.</p><p><a
href="http://yoast.com/digg-submit-buttons/">Digg submit buttons: a good idea?</a> is a post from <a
href="http://yoast.com/about-me/">Joost de Valk</a>&#39;s <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/digg-submit-buttons/feed/</wfw:commentRss> <slash:comments>20</slash:comments> <media:thumbnail url="http://cdn.yoast.com/wp-content/uploads/2008/08/digg-icon.gif" /> <media:content url="http://cdn.yoast.com/wp-content/uploads/2008/08/digg-icon.gif" medium="image"> <media:title type="html">digg-icon.gif</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 (request URI is rejected)
Database Caching 7/27 queries in 0.020 seconds using apc
Content Delivery Network via cdn.yoast.com

Served from: yoast.com @ 2010-09-02 15:18:40 -->