Keywords Tracking With Php 2

I need a simple PHP script that should be placed at the top of every web page of any website and generate a unique number (integer) for every search query that comes from the Internet (using the referrer).

The script should be able to manage diferent websites from a single instalation.

Example: If the user types in Google: “Roman Empire”, the script creates a record with all information available. After that another user types in Google “History of the Roman Empire”, since the search is new in the database, it generates another record, a third user types “Roman Empire” and since this search already exists and both are from Google then only the “count” field is incremented.

Leave a Reply

Your email address will not be published. Required fields are marked *