Welcome to WebmasterWorld Guest from 54.158.31.120

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

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)

Junior Member

10+ Year Member

joined:Sept 26, 2003
posts:141
votes: 0


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 July 6, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:May 18, 2006
posts:68
votes: 0


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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 8, 2003
posts:1419
votes: 0


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 July 10, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 14, 2004
posts:1107
votes: 1


... 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?