Welcome to WebmasterWorld Guest from 54.205.96.97

Forum Moderators: DixonJones & mademetop

How to find out what search terms were used

Webalizer does it, how can PHP do it?

   
5:14 am on Jul 6, 2006 (gmt 0)

10+ Year Member



Hi guys,

I'm wondering how Webalizer is able to see what search terms a user typed when they arrive from a search engine?

Specifically I'd like to use PHP but my only guess is that it's usually from the query string in the user's address bar from when they click on your site in the search results?

Any info would be appreciated!
Thanks!

9:23 pm on Jul 6, 2006 (gmt 0)

5+ Year Member



Try this link:
[webmasterworld.com...]
1:18 am on Jul 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Specifically I'd like to use PHP but my only guess is that it's usually from the query string in the user's address bar from when they click on your site in the search results?

It is through $_SERVER['HTTP_REFERER']

I'm wondering how Webalizer is able to see what search terms a user typed when they arrive from a search engine?

If I am not wrong this is log analyzer which checks your log files.
9:07 am on Jul 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



... and the log files will contain, in the referrer field of the logs, the URL/query string that was in the user's address bar from when they click on your site in the search results?

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month