Hello,
This is a great forum.
I haven't been able to properly Google, etc. a way for one to use PHP to track or log incoming search phrases to a specific page.
Does anyone know how to do this?
For example, I've seen site where it will display the 10 most recent search phrases used to find the site on the side under the menu.
Would it involve going into the logs some how and using a regular exp? This seems complex. I was thinking there definitely must be another way, but can't figure it out.
My goal eventually is to direct the visitor through my mysql search engine with their particular search phrase if the page on my site is no longer found (I will soon be making some great changes) using htaccess. The reason I don't use htaccess for all pages on my site instead is that I have 100k+.
To begin with, though, I just have to be able to capture the particular search phrase into a variable when someone arrives at a page through a search engine.
Thanks in advance for anyone with any ideas or any phrases they can drum up for me to search with for more on this topic.