This will let you list your 50 most referrers from google hits.
First, download the LittleGreenFootballs referrer script.
Make duplicates of all the files adding this to the filename "-google"
example:
change lgf-reflog.php to lgf-reflog-google.php
change reflog.txt to reflog-google.txt
chagne semaphore.ref to semaphore-google.ref
etc.
Open the lgf-reflog-google.php file.
change this line:
$reflog = 'reflog.txt';
to
$reflog = 'reflog-google.txt';
change this line:
$semaphore = 'semaphore.ref';
to
$semaphore = 'semaphore-google.ref';
change this line:
$mydomain = 'mydomain.com';
to
$google = 'google.com';
change this line:
if (($ref) and (!strstr($ref, $mydomain))) {
to
if (($ref) and (strstr($ref, $google))) {
Open the show-refs-google.php file.
change this line:
$reflog = "reflog.txt";
to
$reflog = "reflog-google.txt";
Then make sure this line is at the top of all your pages (above the <html> tag) and that your page either has a PHP extension or make sure your site processes html files as php:
<?php
include('/HOME/PATH-TO-YOUR-FILES/lgf-reflog-google.php');
?>
the link to see your google hits:
http://www.YOURDOMAIN.COM/PATH-TO-YOUR-FILES/show-refs-google.php
Here's it working on this site:
Show Google Referrers
Update: With some major hacking – I grabbed the code from this script and mixed it in so that ONLY the search terms would show. I'm a little hesitant to publish here what I did because I don't want to violate any open source rules…