Search code examples
seosearch-engine

How can I track incoming search keywords


Does anyone know how I could track what search terms people are using to arrive at my site. For instance, someone searchs google for 'giant inflatable house' and clicks through to my site. I want to be able to capture those keywords and which search engine they came from.


Solution

  • You must parse the referer. For exemple a google search query will contains: http://www.google.be/search?q=oostende+taxi&ie=UTF-8&oe=UTF-8&hl=en&client=safari

    It's a real life query, yes I'm in Oostebde right now :)

    See the query string. You can determine pretty easily what I was looking for.

    Not all search engines are seo friendly, must major players are.

    How to get the referer ? It depends on the script language you use.