Fribble - 7:21 pm on Aug 21, 2011 (gmt 0)
It seems there are several ways of doing this and I was hoping for some input from people who have already done this.
I want to write a simple tracking script/plugin for a wordpress-based site that will track a user's referrer (including keywords used when the referrer is a SE) and then record whether they leave the page via the back button. I want to implement this in a way that is completely transparent to the user and doesn't trigger any browser security alarms.
My hope is to get some metrics together that can help me determine the usefulness of the content on each page. If I can see that I'm getting traffic to a certain page for appropriate keywords, but users are leaving and returning to the SERPS then I can make a more educated decision about how well that page satisfies their search.
So far JS seems to be the easiest way, but would require some less than desirable page design (iframes). It looks like it could also be done with redirects but this seems risky to me from a SE perspective. Had anyone figured this out?