Added on: Saturday 9th May 2009
With only 140 characters per 'tweet', if you want to include a link to your website or an article on another site you don't want the URL to take up most of the message.
This is where URL shortening services like tinyURL can be useful. It is no longer alone however. A quick Google search shows there is no shortage of other services.
The top 4 services used on twitter are tinyurl.com, bit.ly, ustre.am and cli.gs.
Each of these tries to offer something unique over the other. For example a short url on tinyurl is 25 characters long and on bit.ly it is 20 characters but yet another service r.im offers short urls that are 14 characters long.
So if you need to squeeze an extra few characters into your message then r.im could be for you.
Is this the only reason for choosing a URL shortening service though?
For me there are two other essentials
Many of the current services do offer both of these features and there is one that I've found - tr.im - that even has the statistics available through their API.
Usually the API is very simple - you tack the URL you want to shorten onto a URL for the API and the return value is the shortened URL.
For example for tinyURL the address is:
http://tinyurl.com/api-create.php?url=[[url]]
where [[url]] is the URL to shorten. In fact it works both ways - if [[url]] is a tinyURL (ie shortened URL) it returns the original URL.
We've now wrapped several of these APIs into a function call and made a Widget to shorten URLs in our CMS.
Of course it is not difficult to create your own URL shortening if you have access to a database and server side scripting.
You can even go further and add a userID field to the table so that each unique ID is now for the user/URL combination meaning that you can track clicks by individuals.
For more information, contact me using the contact page.
Of course unless you've got a very short domain name in the first place you are never going to match any of the above services but you will have more control.
Andrew Parrott runs Round Ash Associates, a web design and development company based in Chagford on Dartmoor, Devon.
If you prefer updates via email then please enter your email address below and click Submit.
If you haven't been to Chagford before then take a look a what you are missing.
Sitepoint is an indespensible resource for web designers.
Internet Explorer isn't the only web browser and from a development point of view Firefox is much better.
As many of the articles on this site are slightly techy I thought I ought to link to a glossary of Internet terms.
The layout for this site uses one of Matthew James Taylors 'liquid layouts'.
©Round Ash Associates 2009. Powered by form2list.