Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 public void OnMatched(PageMatchedContext matchedContext)
 {
     ABPageTestTrackingHelper.SetABTestPageCookie(matchedContext);
 }
Exemplo n.º 4
0
        public static void SetABTestPageCookie(PageMatchedContext matchedContext)
        {
            var trackingToken = ABPageTestTrackingHelper.ComposeTrackingToken(matchedContext);

            matchedContext.HttpContext.Response.SetCookie(new System.Web.HttpCookie(Track_CookieName, trackingToken));
        }
Exemplo n.º 5
0
 public void OnMatched(PageMatchedContext matchedContext)
 {
     ABPageTestTrackingHelper.SetABTestPageCookie(matchedContext);
 }
Exemplo n.º 6
0
        public static void SetABTestPageCookie(PageMatchedContext matchedContext)
        {
            var trackingToken = ABPageTestTrackingHelper.ComposeTrackingToken(matchedContext);

            matchedContext.HttpContext.Response.SetCookie(new System.Web.HttpCookie(Track_CookieName, trackingToken));
        }