Dave Burke : Freelance .NET Web Developer specializing in Online Communities

CS Nuglet: URL Redirection. What is it good for?

If we're going to fully appreciate the Community Server URL Redirect function, we must first agree that it is inappropriately named.  It should be called a URL Tracker, or something along those lines, because that's what it does and is what we care about.  Using URL redirection, this nifty CS function tracks the hits of the pages on our sites that we want to monitor.

I think we'll come together on the sweetness of URL Redirection by walking through an example on my site.  Everybody, hold hands.

For my CS 2.0 theme I wanted to display a group photo that always makes me smile when I look at it.  It's a photo of a Swedish musical group led by percussionist Bengt Berger.  I know nothing about Mr. Berger or his band.  All I know is that the photo makes me smile and I wanted to share it.

What better way to demonstrate URL Redirection than to track how many people discovered this wonderful photo through my site?  There are three items I want to track to get an accurate read on how many smiles the photo of these charming musicians generated.  I first want to track how many people go to the post I wrote about the photo by clicking on the small sidebar group image.





Then on the post itself, I want to track two things.  I want to track how many times people click on the photo to display the full-size JPEG (green arrow) and I want to track how many times people click through to Bengt Berger's website (circled in red.)





Now we can go to the Control Panel and talk about the redirection aspect of URL Tracking.  We track those elements (the sidebar link to the post, the display of the full-size .JPG file and link to Bengst's website) by creating a URL in the form of  /r.ashx?#, where "#" represents the number of the redirection item ID.





To track how many times people click on the sidebar image to view the post about the photo, the URL I will want to track is /blog/archive/2005/12/20/3725.aspx.  To track that URL, I create a /r.ashx?# URL which performs all of the magic for me.  I enter the URL, provide a description, and click "Create."  That creates the /r.ashx?# URL, which I obtain from the "View" button modal window (below,)  which I will copy and paste on my sidebar control in place of the original URL.





Got it?  Same thing with the blog post.  I replace the URL to the .JPG and Bengt Berger's site with their respective r.ashx?# URLs and I've got Insta-Tracking, Baby!

P.S.  A big thanks to Jose Lema whose recent post about URL Redirection prompted me to investigate and implement Bengt Berger smile tracking at dbvt.com.

[tags: Community Server]

Comments (3) | Post RSS RSS comment feed

Posted on 7/3/2006 9:08:00 PM by Dave Burke
Categories: Community Server
Tags:

Related posts

Comments (3) -

7/3/2006 10:51:25 PM Permalink

For your internal images/external links, it was reasonable to use Url Redirection feature but for this small photo on sidebar that you've linked it to one of your posts, you could use your post statistics to count how many peoples clicked on this image and redirected to your post.  This is a better stat because once a visitor reaches to destination page, it will count him/her but in this case if he faces with an error his visit won't be counted (1 in 10'000 :-D).

I have to add this point to your post:
Url Redirection is a great feature to count your outgoing visitors for a specific link.  When you have many common links (i.e. Projects you've participated in, your family websites, your friend websites, your Ads, ...), it's worth to add them to Url Redirection then define a TextPart for them and enjoy blogging with CS as I use this technique.

Thanks Dave for this useful posts Wink

Keyvan Nayyeri |

7/4/2006 4:46:17 AM Permalink

Keyvan, Thanks for your thoughts.  You're right about the better post stats for the sidebar image-to-post counting, but its cumbersome to pull up stats for a particular post made in 2005.  I think the error issue is pretty insignificant though.  Good point on the Url Redirection on outgoing stats.  

daveburke |

7/4/2006 5:11:00 PM Permalink

IMO where this really shines is for tracking links you leave externally back to your site, i.e. I have a URL redirect link in my signature over on CS.org that hooks back to my CS tidbits category...then I can see how many folks are actually clicking on it from the CS.org website. yay!

jayson knight |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke