This is a discussion on sales tracking within the PHP General forums, part of the PHP Programming Forums category; HI there, I am trying to develop a system to track sales. When a user is redirected to my site ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
HI there,
I am trying to develop a system to track sales. When a user is redirected to my site from a partners' website (via a unique URL), I would like to attach a cookie which lets me know that this user came from site X. When the user fills out a customer information form, I would like the information on which site the user came from to be included in the form. This way if we make a sale we can reward the affiliated website. Can anyone assist me in drawing a plan of action/strategy for achieving this or letting me know if there are codes out there which have been writen with what i am trying to do in mind. I have limited knowledge in PHP (i am studying for ZEN) and MYSQL. Thanks Duncs |
|
|||
|
You could use a nifty service like shareasale.com or an affiliate
script like http://jam.jrox.com/. You can also do this directly by checking the $_SERVER['HTTP_REFERER'] value and setting an appropriate value in the $_SESSION to tie that user to that referrer. When you process the form, look at the value of $_SESSION['theReferrer'] and store it with the order. On Jun 16, 12:46 pm, Megamoto <duncanell...@breathe.com> wrote: > HI there, > > I am trying to develop a system to track sales. When a user is > redirected to my site from a partners' website (via a unique URL), I > would like to attach a cookie which lets me know that this user came > from site X. > > When the user fills out a customer information form, I would like the > information on which site the user came from to be included in the > form. This way if we make a sale we can reward the affiliated website. > > Can anyone assist me in drawing a plan of action/strategy for > achieving this or letting me know if there are codes out there which > have been writen with what i am trying to do in mind. I have limited > knowledge in PHP (i am studying for ZEN) and MYSQL. > > Thanks > > Duncs |