Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Let assume someone types a longtail keyword, how do you dynamically generate a page with those keywords?

for example,

summer light pink florescent lights should generate a page with that keyword search phrase.

Is there a way to know what keyword was searched and display including that keyword?
I can do this on Adwords, and I was wondering if it's doable with normal google SE traffic.

share|improve this question
is this what you are looking for: davewooding.com/… ? – JMax Jan 19 '12 at 7:46

1 Answer

Let assume someone types a longtail keyword, how do you dynamically generate a page with those keywords?

You cannot dynamically generate a page to appear in search results after the search has been run (unless you control the search engine) so you appear to be either asking how highlight the terms a user entered as part of his or her search on your site or how to create spam content.

Is there a way to know what keyword was searched and display including that keyword?

Yes and no - if a user is logged in with his or her Google account (or using SSL at Google) the HTTP referrer field is not populated and you will not be able to infer the user's search from the referrer field.

If the user is not logged in, you can parse the query from the q GET variable in the referrer URL:

http://www.google.com/url?sa=t&rct=j& [...] q=the%20query [...]

share|improve this answer

Your Answer

 
discard

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.