#
nbennett
The sponsors of my website have a need to identify the referring URL of a user and tag any record they create with a code.
For example, if someone searched for us on Google and then clicked a link to go through to our website, the referring URL should contain "www.google.com".
Our initial thoughts are to use "HttpContext.Current.Request.UrlReferrer" but every time we perform some testing, this value is initially null and then the code gets re-run after performing the URL re-writing process and "HttpContext.Current.Request.UrlReferrer" becomes populated with the URL of the page.
Please can some advise on whether this has been done before and what best approach would be.
For example, if someone searched for us on Google and then clicked a link to go through to our website, the referring URL should contain "www.google.com".
Our initial thoughts are to use "HttpContext.Current.Request.UrlReferrer" but every time we perform some testing, this value is initially null and then the code gets re-run after performing the URL re-writing process and "HttpContext.Current.Request.UrlReferrer" becomes populated with the URL of the page.
Please can some advise on whether this has been done before and what best approach would be.