ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

4
Date Submitted Wed. Jul. 4th, 2007 8:50 AM
Revision 1
Beginner drillman
Tags "extract keywords" | "search string" | google
Comments 2 comments
This snippet extracts the keywords or search phrases from a Google referral. It also sets variables for the search engine, date and web page which received the referral if you want to log the data to a file or database. The variables are $engine, $finalphrase (keyword phrase), $page(referred web page), and $date.
7
Date Submitted Sun. May. 20th, 2007 5:17 AM
Revision 1
Scripter SecondV
Tags "extract keywords" | "search engine" | keywords
Comments 1 comments
This class can be used to retrieve the search words entered by an user in a search engine site that lead the user to the current page.

The class can parse the HTTP_REFERER variable if present. Then it can detect which search engine site lead the user to the current page, and extract the search words.

Currently the following engines are supported:

- Google
- Yahoo
- MSN
- AllTheWeb
- LookSmart
- AskJeeves