| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Getting referrer, storing, retrieving to a form|
For visitors from one particular site
I am not very good at PHP and a bit lost about how to do this.
I want to track those who are referred from one particular site AND complete a form. I am not sure how to start, but it seems like this is the flow:
1. Get the referrer when they arrive at my site.
2. Make this into a parameter
3. Somehow store this parameter as they browse around
4. Retrieve the parameter when they come to fill in a form
1 and 2 I can do. If I have the parameter stored somehow I can do 4.
3. I am a not sure how to achieve. Any help appreciated.
You are going to need to use sessions [php.net] to track that user thru your site.
Also, I might suggest that rather then grab the referer, which can be unreliable (many people block passing a referer), maybe link with a type of affiliate id, so this site links to you like:
Where foo is what identifies the site that the user clicked thru from.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved