Most of the traffic from my site is sent by search engines. I am trying to track the keywords used on the search (EG to have real-time stats on the 'hottest' searches).
What are my options? I thought of:
Parsing the HTTP_REFERER (using a list regexps for major search engines)
Importing google analytics data (using google analytics api) - however this is not realtime
Are there any gems/libraries that offer support for this?