Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is a lead form on my website where we track from which source visitors have arrived. I wanted to disable the drop down and auto populate it with predefined data if the visitor is from adwords. This form is not on the landing page. Is there a way I could do that by reading cookie or any other way.

share|improve this question
Backend language on the website is PHP – som shekhar Nov 12 '12 at 6:08

In php exists variable which can help you: $_SERVER['HTTP_REFERER']. Just see here.

share|improve this answer
You can also do it based on the url. Adwords can add tracking urls that look like UTM_Source / UTM_Campaign. You can use PHP or even javascript to read these values and tweak your landing page. Or you can create a custom landing page based on each referral. This might be a good investment. If you can really understand your audience, having multiple landing pages for different campaigns targeted for different audiences will pay off. For example on landing page for customers googling your competition. One landing page for people searching "lowest price ...." – Frank Nov 13 '12 at 9:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.