Skip to content

Instantly share code, notes, and snippets.

@islaytitans

islaytitans/IdentifyContact.cs Secret

Last active Mar 2, 2017
Embed
What would you like to do?
How to identify and Merge Contacts in Sitecore
// if the matched Contact by email address is not the same Contact in session
if (!matchedContact.ContactId.Equals(Tracker.Current.Session.Contact.ContactId))
{
// call .Identify to merge the session into the identified Contact
Sitecore.Analytics.Tracker.Current.Session.Identify(emailAddress)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment