Need some work done? Post a Project Today
Here is the scope of the script:
Potential customers come to my site. I need to know which website the user came from.
Step 1. Capture URL where user came from.
Step 2. User surf around my site and still retain the capture original URL (URL parameter must be able to pass from one page to another).
Step 3. The referrer URL must be stored in a cookie that maybe accessible when the users returns
Step 4. When the user fills out the form that URL must be inputed into a hidden field (The form has been created, I will provide you with a sample form page to insert the hidden field). The form is written in Java, and I will be creating many forms, but the name of the field/variable will always be the same.
Step 5. Must ensure this script works on popular browsers (IE 7, IE 6,
FireFox and Opera).
Here is a scenario of the above script:
1. User Y search for my services on google, etc.. Clicks on the link and lands on my product page.
2. The script captures the Google URL (or the partner referring URL) and stores it in a cookie.
3. The user Y decides not to sign up today. (Or they wait a few hours)
4. User Y comes back 2 days later surf around the website and decides to fill out the signup form.
5. Script checks the cookie and sees that the user Y had visited the site 2 days prior, and retrieves the referrer URL from user Y's cookie.
6. Script writes that info into a hidden field in signup form.
I have examples of the form ready to send, I need this done ASAP