Print Search Engine Queries via PHP.

IN PROGRESS
Bids
10
Avg Bid (USD)
N/A
Project Budget (USD)
$30 - $250

Project Description:
This will be easy for someone who knows PHP.

My intent is to build a database of search queries for each page of my website.

I need to be able to pull the search strings a website visitor used on a search engine that brought visitors to my site.

project scope:
Write a PHP code segment that I will include (include "q.php";) in each of my web pages.
From there I want to be able to print the search phrase that the user entered into the search engine.
example: print "$query";

Also, since I will be building a database of search engine queries for each of my landing pages, I need to know the landing page of the query.
Example: print "$landing_page"; would show the page that the user landed on when sent by the search engine.

I would also like to know the search engine that sent the user to my site so I can also print it.
example: print "$search_engine<br>"; will print Google, Bing or Yahoo.

I am only interested in tracking the following search engines:
google.com
yahoo.com
bing.com
All other search engines can be ignored.


You will not need to worry about the database. I will take care of that.

A successful project will allow me to enter the following code in each of my pages:

<?php include "q.php";
print "$query<br>";
print "$search_engine<br>";
print "$landing_page<br>";
?>

The results then would look like:
ask uncle ralph
google.com
www.askuncleralph.com

Skills required:
PHP
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.