Are you a Google Analytics enthusiast?
More SEO Content
Tracking A Click
Posted 23 December 2003 - 09:01 AM
I have a button that when clicked opens up the users mail program via use of mailto: and allows them to send a link via an email.
I realise that there are some browser issues with using mailto; but am not overly concerened with this as for 99% of users it will work. ( I intend to implement a more concrete solution as and when time permits, but it'll do for now )
Anyhow, my problem is this, when a user clicks on < a href=mailto:etc etc>button here</a> I would like to know that they have done so, so I can greater evaluate its perceived use and take up.
It looks like Google tracks clicks via the use of this construct:
I am assuming that this registers the click and sends them on their way.
I'd like to do something similar but without reloading the page or sending them on anywhere.
If anyone has any ideas I'd be obliged.
Posted 23 December 2003 - 10:22 AM
Posted 23 December 2003 - 10:35 AM
I should have elaborated.
Its a 'tell a friend' type thing... not an e-mail to the site owner.
I'm just trying to find a simple way to determine how many times that 'tell a friend' button is clicked.
Posted 23 December 2003 - 10:43 AM
But, with just the simple mailto:, you could make it a form button that processes a small script alerting you that the link has been clicked on and then opening a mailto command (but that sounds like more work than creating a form).
Posted 23 December 2003 - 10:48 AM
That may come in handy at a later date, I'll bookmark it as a possible
Posted 23 December 2003 - 10:56 AM
Edited by robwatts, 23 December 2003 - 12:00 PM.
Posted 23 December 2003 - 10:59 AM
I realize you're not asking about using a web form, but if you did you would be able to bcc yourself on the emails (which is actual usage, not clicks, but anyway).
If you are copying yourself on e-mail forms, you need to disclose this to the user.
Posted 23 December 2003 - 05:14 PM
This would work real good for you. Create a 1x1 pixel and uniquely name it. Then, add the onmousedown event to your link to request the 1x1 pixel. It could be as simple as:
<a href="..." onmousedown="(new Image()).src = '/path/to/your/image';">
Then, just look for this image being requested in your log file to find out how many times the feature has been used. It's a pretty clever technique. Using the onmousedown event is better than onclick because it gets triggered before the 'click' does.
Posted 23 December 2003 - 06:46 PM
Thanks Adam just the kind of prompt I was after
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users