We are migrating from sitecore 8.2 to sitecore 9.3 and having some custom page events to register few actions from our users. While debugging the code we could see the event name, event id everything getting added perfectly but in sitecore experience profile under events we are not able to see event type and name of event formed properly. Please see attached screenshot from sitecore 8.2 and sitecore 9.3 for reference.
Name displayed in Sitecore 8.2 -
Name not getting displayed in Sitecore 9.3 -
Custom code -
[CLSCompliant(false)]
public class TrackEvent : MarketingDefinitionBasedEventProcessor<EventInstance, IPageEventDefinition>
{
protected override bool IsValidEvent(EventInstance eventInstance)
{
return !string.IsNullOrWhiteSpace(eventInstance.EventId);
}
protected override IPageEventDefinition ResolveDefinition(EventInstance eventInstance, TrackEventPipelineArgs args)
{
return Sitecore.Analytics.Tracker.MarketingDefinitions.PageEvents.FirstOrDefault(
e => e.Id == new Guid(eventInstance.EventId));
}
protected override void DoTrack(IPageContext pageContext, IPageEventDefinition eventDefinition, EventInstance eventInstance, ITracker tracker)
{
if (tracker.IsActive && tracker.Session?.Contact != null)
{
Sitecore.Analytics.Tracker.Current.CurrentPage.RegisterPageEvent(eventDefinition);
}
}
}
Page events
using theDeploy marketing definitions
option on the control panel?