title: How to store Entry URL (Landing URL) and Referring site to a website using jquery/PHP
body: <p>I want to store the <strong>landing page url</strong> to my website.</p>
  
  <p><strong>example</strong>: when user comes from the google search to <a href="http://mysite.com/" rel="nofollow">http://mysite.com/</a>, He can browse any number of pages But the landing url or entry url will be <a href="http://mysite.com/" rel="nofollow">http://mysite.com/</a>. So i was not able to store this url, but i can able to store the previous url using <code>document.referrer</code>. How to do this in jquery, Do i need to use cookies or Is there any other way.</p>
  
  <p><strong>How to store the referring site</strong>, For example if user comes from google search. how to store it, instead of storing the previous URL. Is this can be done using PHP.</p>