You’ve probably seen Twitter’s URL shortener, “t.co”, pop up in links. Then again, you might not even realize it’s there. Whenever you post a link, it will be shortened with this service automatically. Interestingly, even a URL that is short enough already, or shortened with another service, will still be shortened into a “t.co” short link. Their FAQ suggests that all of your links and even your URL shorteners will still work. It’s just that your click will get passed through “t.co” before it goes on to the URL shortener and then on to your final destination. 1
The reason why seems pretty obvious – because they want to see what people are clicking on and why. As with other social websites, the users are the product and commodity being sold to advertisers. Don’t get me wrong – I don’t have a philosophical problem with this. It seems a decent and legitimate enterprise and a reasonable bargain with the end user for the free use of their service. 2
So, I’m the kind of guy who, seeing a link on a website will sometimes copy and paste that link into an open browser tab, rather than clicking on it. Sure, it’s 10 more seconds out of my day – but it gives me a perverse little bit of pleasure to thwart such information surveillance. Imagine my surprise today to discover that this didn’t work! I went to Twitter, highlighted and copied a Bit.ly link, and pasted it into an address bar. But what appeared was the “t.co” link! I figured I must have messed up the coping, so I did it again. 3 Again, I get the “t.co” link. Once more into the breach. Again, the same “t.co” link.
Then I notice that each time I hit “Ctrl-C” or right click on the highlighted link the link text flashes for just a moment. I do it a few more times and realize what’s happening.
Whenever the Javascript in Twitter’s website detects a “Ctrl-C” or right mouse click on a link, which has the CSS class “twitter-timeline-link”, it will swap out the text of the URL for the “t.co” shortened URL.
This little bit of tech just tickles me. I can conceive of a legitimate reason for this behavior – ubiquitous and imperceptible URL shortening for the ease of all users. 4 But, really, this is just about controlling all links that originate from Twitter so that they can aggregate and analyze. I just admire this behavior because it is just so slick and nearly totally seamless.
- I would point out that when the URL appears in an RSS feed, it shows up as a “t.co” link, which goes through “bit.ly”, instead of the actual link itself. [↩]
- I’m not trying to describe their service in any pejorative terms, I’m just trying to describe it accurately. I don’t think anyone would dispute this is their business model. [↩]
- After all, Ctrl-C can get pretty complicated. [↩]
- Perhaps you were going to copy/paste the URL into an e-mail and now you won’t have to worry about a broken URL [↩]