Forum Moderators: phranque

Message Too Old, No Replies

Can http headers be read by javascript?

how to link referrals and sales? help needed.

         

starec

6:18 pm on Oct 17, 2002 (gmt 0)

10+ Year Member



I would like to track the (external) referral of each sale. The problem is that most sales start on static html pages.

So I need some way to read the referral, and if it is external, store it to a cookie. Then at the moment of purchase I would read the cookie and store the corresponding referral in the DB.

Is there a way of to do it using javascript? Or some other way?

Dreamquick

7:01 pm on Oct 17, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Whatever you do, the header stuff needs to be done at the server-side since to the best of my knowledge none of the current generation of client-side scripting languages allow you access to the headers.

- tony