Use this code to extract QueryString params from the raw url:
Uri theRealURL = new Uri(HttpContext.Current.Request.Url.Scheme + "://" + HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.RawUrl); string utm_source = HttpUtility.ParseQueryString(theRealURL.Query).Get("utm_source");Actual code from this blog
No comments:
Post a Comment