Reputation: 43
I really want a script which fill my needs for knowing the keywords which were used by the visitor ... thanks in advance and please if you can help me with Visitor page tracking as well it would be icing on top :)..
Visitor Page tracking means to track the page or Log the information about the pages which visitor hits or landed in
Upvotes: 1
Views: 463
Reputation: 3309
I second Google Analytics. You can also check out http://Piwik.org, an open-sourced alternative.
-- EDIT --
With respect to your comment. If you're using PHP you might want to check out $_SERVER['HTTP_REFERER']
. As that will help you begin to decode the search parameters included in the query string.
Upvotes: 0
Reputation: 50185
This will work for Google at least (non-instant search), and probably other search engines:
searchTerms = document.referrer.match(/[?&]q=(.*?)[&$]/);
searchTerms = searchTerms && decodeURIComponent(searchTerms[1]);
Upvotes: 1
Reputation: 23250
Try signing up for Google Analytics: http://www.google.com/analytics/
Upvotes: 2