Forum Moderators: coopster

Message Too Old, No Replies

How to track visitor click via PHP?

         

irock

4:20 am on Jun 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi, I've just been accepted into a search engine's XML feed program with which I can integrate search result into my site. I've overcome all problems and succeeded in displaying XML results on my pages.

Now, here comes the problem of tracking. If I implement a click tracking program which involves another program, how do I pass through the target URL from the search result page to the tracking program? I would like to hide the target URL as well.

Here's my thought...

XML links displayed on browser -> User clicks on PHP tracking link -> PHP program records click and sends the user to the target URL.

Can this be done w/o showing the target URL? The target URL I'm referring to is like two-mile long and I would like the track URL to be as short as possible.

I know this is rather long. If anyone can offer help, that would be great!

jatar_k

3:43 pm on Jun 17, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I don't see why that wouldn't work. You can include the big ugly url page in another page and also do your tracking. Like using a redirect script.

irock

5:38 pm on Jun 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could you pls be a bit more specific?

jatar_k

10:54 pm on Jun 17, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Well, I imagine that you load/parse the xml feed into the page somehow. So why not have a tracking script on that same page?

Include the tracking function on the top of every page. Unless maybe I am not understanding something.

irock

2:01 am on Jun 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I need to track clicks, actually.