Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public static void TrackEmailClick(HttpContextBase httpContext, EPiServer.Tracking.Core.ITrackingService trackingService)
var email = GetCurrentUserEmail();
// If you know the users name and/or additional information
// like company name it's also possible to associate here
var userData = new UserData() { Name = email, Email = email };
var trackingData = new TrackingData<object>
EventType = "EmailAssociated",
User = userData,
Value = "Associated email with current profile: '" + email + "'"
trackingService.Track(trackingData, httpContext);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.