As any good SEO will tell you, tracking links is a good thing, but alas not for UKSEOHere, that went down inexplicably for the past few days. Not checking the site for a few days I thought it was a hangover from the April Fools gag, but it wasn’t, it was twitter’s fault – for adding link tracking to their feeds.
Basically the links went from this:-
<a href=”http://search.twitter.com/search?q=%23ukseohere”><b>#ukseohere</b></a>
To this:-
<a href=”http://search.twitter.com/search?q=%23ukseohere” onclick=”pageTracker._setCustomVar(2, ‘result_type’, ‘recent’, 3);pageTracker._trackPageview(‘/intra/hashtag/#ukseohere’);”><b>#ukseohere</b></a>
Which is a proper pain in the arse, as not only were the UKSEOTweets not being discovered, but if people sneak in another hashtag, the proliferation of apostrophes inserted into the database meant that when the data was passed to the javascript, it wasn’t putting the points on the maps at all!
Anyway, it’s now fixed and my head hurts from playing with regex for the past two hours, thanks to Peter Handley for spotting the error to begin with!