Forum Moderators: open

Message Too Old, No Replies

Update external record

Click tracking - update record on one site and go to another

         

wdavis10

8:37 pm on Nov 8, 2007 (gmt 0)

10+ Year Member



I am currently implementing a click tracking link that runs from another site in a classified listing.

It needs to go directly to Site A but must update a record on Site B simultaneously. The goal is to not have it access Site B before Site A in order to update the record.

I would think it would be an onunload event when the page leaves to A it would somehow send a message to Site B.

Thanks for the ideas!

Dabrowski

11:24 pm on Nov 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The easiest thing would be to run a script on Site A which calls something on Site B.

For example, the web stats package I wrote inserts an IFRAME on the page which calls the tracking software on my server. The IFRAME is set to zero size, hidden etc etc.

If I need to debug, I make the IFRAME visible and it actually contains useful information about what it's tracking.

This is the same method page counters and things use, I imagine it's the industry standard way of doing it.

wdavis10

12:04 am on Nov 9, 2007 (gmt 0)

10+ Year Member



If Site A was under my control I would do it, but it is not. I can only point a link to it. I am trying to not send Site A any reference to Site B.

Dabrowski

9:57 pm on Nov 9, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Then you can only hit Site B, and have that redirect to Site A.

If they are on different domains you can't even use an iframe and onLoad.

wdavis10

10:08 pm on Nov 9, 2007 (gmt 0)

10+ Year Member



Thanks for that bit of info! I was hoping I could do it without redirecting from Site B. I just set it up to update with php and mysql on my site and redirect.

Tahnks!