Incoming Search terms on regular PHP (not wordpress plugin)

thizzladen

Power Member
Joined
Jul 11, 2009
Messages
765
Reaction score
671
I used to have a wordpress plugin that would display a list of "Incoming Search Terms" that brought the visitor to the page from Google or any other search engine.

Does anyone know how to implement the same effect in regular PHP code on a custom website?

Thanks
 
May I ask why you don't just use Google Analytics?

Veyron
 
u would have to store the info somewhere first (either in a DB or pull it from the logs) so u could later retrieve it and display it
 
i suggest not to use this plugin or anything having similar function. I've seen few sites using it on the sidebar or on the bottom of post, and the page look like keyword-stuffed. Sure Google doesnt like it.
 
Because of the high percentage of "Not Provided" kw? ..

btw, I want to know this also OP..

It's possible but there has to be another reason besides this. Google Analytics is the most widely used and most accurate tool so unless it's just a matter of preference, I'm not sure why he's not using GA.

Veyron
 
I guess you should parse $_SERVER['HTTP_REFERER'] and get the parameter q (at least for Google).
 
It's not for analytics, it's to automatically post the keywords on the actual page that the user came into from google.
 
Back
Top