click tracking
A while back I was at a small conference in Charlottesville for public affairs types that work at environmental agencies in our region. One of the EPA webmasters gave a presentation about their site. She pointed out that they track the clicks on their website by logging each click in a database. In this way, they can tell which stories are the most popular, and which areas of the page have the highest value and are most visible to users. It has given them data that helps them design their pages.
I liked that idea, so I went home and started to write my own click tracker. What I didn't like about their setup was that each link pointed, not to the actual page that the user wanted, but to a CGI program called "epalink" that would (apparently) log the click, and then bounce the user to the page they really wanted. It's fairly transparent to the users, but I saw a few problems:
- The URL in the status bar is long and ugly
- The page maintainer has to remember to format the links in a certain way
- If applying to a large existing site, changing all the links would be nightmarish
I wanted to work out a way to track links on a page without changing any page body code at all. Since my current interest is JavaScript development, I jumped in and tried to figure out a way to do this the way I wanted.
Permalink
Tags: javascript, mssql, mysql, php, prototype
Comments (1)