title: get query parameters from google with referrer javascript
body: <p>Is it possible to get the query parameters from google searches?</p>
  
  <p>I.e. if someone googled bicycles the url becomes:</p>
  
  <pre><code>https://www.google.es/search?q=bicycles......
  </code></pre>
  
  <p>If you then come in the search results and someone clicks to your page you cannot see the query parameters with document.referrer it will only show</p>
  
  <pre><code> https://www.google.es/
  </code></pre>
  
  <p>Is there a way to know what a visitor searched before coming to your site?</p>