title: Record visitor search keywords or traffic source in PHP
body: <p>I'm working on an <a href="http://www.easterislandtraveling.com/" rel="nofollow">Easter Island site</a> with lots of info on the island, but also possibility to book tours etc. For a general idea of how people find my site I use StatCounter and Google Analytics, but I'm especially interested in how those who send me booking inquiries find my site.</p>
  
  <p>I would use php session variables to store the info and e-mail it to me at the same time I receive an inquiry - perhaps even create a database for the purpose of having statistics, but the question is:</p>
  
  <p>How do I fetch the search words or the url the visitor is entering from?</p>