public static string ComposeTrackingToken(PageMatchedContext matchedContext) { var trackingValue = string.Format("{0}||{1}", matchedContext.ABPageSetting.MainPage, matchedContext.MatchedPage.FullName); var trackingToken = SecurityHelper.Encrypt(matchedContext.Site, trackingValue); return(trackingToken); }
public static string ComposeTrackingToken(PageMatchedContext matchedContext) { var trackingValue = string.Format("{0}||{1}", matchedContext.PageVisitRule.UUID, matchedContext.MatchedPage.FullName); var trackingToken = SecurityHelper.Encrypt(matchedContext.Site, trackingValue); return trackingToken; }
public void OnMatched(PageMatchedContext matchedContext) { ABPageTestTrackingHelper.SetABTestPageCookie(matchedContext); }
public static void SetABTestPageCookie(PageMatchedContext matchedContext) { var trackingToken = ABPageTestTrackingHelper.ComposeTrackingToken(matchedContext); matchedContext.HttpContext.Response.SetCookie(new System.Web.HttpCookie(Track_CookieName, trackingToken)); }