• Not Answered

Sitecore Personalization rule related to goal is not working in Mcrosoft Edge browser vesrion 42.17134.1.0,Sitecore version 8.2 rev.161129

Hi guys,

 

can you help with the issue Microsoft Edge browser with personalization rules related to goals are not working,below is the one,i have tried remaining goals also.

It's working fine in chrome and IE11,Firefox browsers.

i'm triggering the goal through the JavaScript by making the ajax call.i see my JavaScript is triggering the goal,but the personalization rule attached to goal is ineffective in Edge browser only.

Below code is used to trigger the goal

 

 

       

var goalItemId = new ID(goal);

        var goalItem = Sitecore.Context.Database.GetItem(goalItemId);

 

        Tracker.Current?.CurrentPage?.Cancel();

        Tracker.Current?.Session.Interaction.AcceptModifications();

 

        var page = Tracker.Current.Session.Interaction.CreatePage();

        page.SetItemProperties(Request.pageId, "en-us", 1);

        Item item = Sitecore.Context.Database.GetItem(new ID(Request.pageId));

        string url = LinkManager.GetItemUrl(item);

        page.SetUrl(url);

 

        var registerTheGoal = new PageEventItem(goalItem);

        var eventData = page.Register(registerTheGoal);

        eventData.Data = goalItem["Name"];

        eventData.ItemId = goalItem.ID.Guid;

        eventData.DataKey = goalItem.Paths.Path;

        eventData.Text = "goal for FanVoting";

        Tracker.Current.Interaction.AcceptModifications();

        Log.Info("Goal Triggered for Fan Voting",goalItem.Name);

        IsGoalTriggered = true;