Home » Featured, social media

Dynamic URL Suffixes

6 March 2010 View Comments

I have a problem I can’t solve, and I’m hoping someone reading this can help. I’d like to dynamically tack a set suffix on to blog URLs before feeding them out into various channels.

Example URL: http://ephealy.com/sample-blog-post

Let’s say I want to tack on a tracking code for Facebook before feeding it to a Facebook page so that traffic resulting from Facebook can be tracked. Example Facebook URL: http://ephealy.com/sample-blog-post?tid=12345

And let’s say I have a different code for Twitter that I’d like to tack on before bit.ly takes over and the update feeds to a Twitter account. Example Twitter URL: http://ephealy.com/sample-blog-post?tid=67890

Is there a service that can handle this type of thing? I’d love to hear from you, if you know the answer.

  • Carl
    There are a couple of ways to handle something like this. Do you have access to the code running underneath your blog? If you do, then you could add a function to log something to your database whenever a page is requested, depending on the parameters in the link. The exact method depends on whether you are using PHP, Or Django, or Ruby on Rails, etc.
  • Sadly, my code-fu is weak, which is why I'm hoping for a free service that can do this for me.
  • Carl
    It wouldn't be too hard to set up a service like that that redirected to the original article I suppose. Though I don't know of any free services that do that yet. What you want are basically referrer links.
blog comments powered by Disqus