Re: Terms used in search engine.
| From: | Lukas | Date: | Thu, 13 Sep 2001 21:08:31 +0000 |
| Subject: | Re: Terms used in search engine. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67270@lists.php.net to get a copy of this message | ||
Kunal,
Looking at the referer header will tell you the page they came from, looking
at the querystring typically of this address will normally give you an
indication of the keywords or categories which they were using.
ie,
http://www.google.com/search?hl=en&q=using+xsl+in+jsp+pages
http://google.yahoo.com/bin/query?p=using+xsl+in+jsp+pages&hc=0&hs=0
This would be the referrer page, you could then parse out the 'q' parameter
for google, or the 'p' one for Yahoo! for keywords. Easiest way would be to
do a split() or something i guess.
Lukas
"Kunal Jhunjhunwala" <kunal@getmonked.net> wrote in message
news:050301c13c8d$92255520$0301a8c0@CONFUSED...
> Hey,
> I am trying to track the terms the user typed in the search engine to find
> and come to my site. How can one do this? I tried some of the Header
calls,
> but had no success.
> Regards,
> Kunal Jhunjhunwala
>
> Two brothers torn apart by Chaos, while the fortress
> endures, the great leader will succumb , The third
> big war will begin when the big city is burning" -
> - Nostradamus 1654
>
>