PHP Script – Show Google Search Term That Brought Visitor to Your Website

Find the Google Search Term Keywords That Landed the Visitor on Your Website

I always wanted to know when displaying the webpage what search brought the user to this page.  You can always look at Google Analytics, or whatever statistics package you have on your server (Urchin, Webalizer, etc…), but that is after the fact.  So, I wrote a simple PHP script (all server-side) that gives you that information.

Code Example: Full script – Copy & Paste

Continue reading “PHP Script – Show Google Search Term That Brought Visitor to Your Website”