title: How do I get the URL from the previous page used to connect to my site? Not the link
body: <p>I have tried this: <code>$_SERVER['HTTP_REFERER']</code></p>
  
  <p>The challenge is it only gets the link that the person clicked on to reach the next page and not the actual URL of the previous page.</p>
  
  <p>It does not matter if it can be spoofed. Its not mission critical. I just need to track a percentage of the results accurately.</p>