Forum Moderators: DixonJones

Message Too Old, No Replies

tracking javascript links

         

macrost

2:51 am on Aug 25, 2004 (gmt 0)

10+ Year Member



I am at the point now where I really need to track links that are generated by javascript. I was thinking about creating a function that would capture which link was clicked (ten per page) and then somehow using vbscript to capture that and log to my database.

Has anyone done this before? (stupid question :) )

HughMungus

3:02 am on Aug 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you mean for Adsense? Your question made me think of a solution that I was trying to think of -- why not just track where people are going with a PHP script? What's the term for that (opposite of a referer)?

macrost

3:10 am on Aug 25, 2004 (gmt 0)

10+ Year Member



Well what I need, isn't for adsense. These links are created dynamically for a catalog of sorts that goes off of my site. Now I need to know where these people are clicking if that makes sense.

I am thinking about doing it in asp/vbscript, but passing the js link to asp, can't quite get my head around it.

<added>
Hmmm, now that I'm thinking about it, I can maybe just pass the vars I need to an asp page, and when that link is clicked, the vars are assembled and the asp page logs the data to the database, then redirects the user to the appropriate place.

Must try tomorrow.
</added>

HughMungus

3:21 am on Aug 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Setting up a system whereby you use an internal link that leads to a page that updates your database then redirects to the affiliate link is easy. I set that up myself in PHP this weekend in about 2 hours.