We are working through upgrading from 9.1 to 10.2, changing various API calls where there are now removed methods, etc.

One method's update we are having trouble locating is Tracker.Current.Session.IdentifyAs - we are using this method to track contacts as part of a service. Can anyone assist with what might be the replacement for this method in 10.2?

1 Answer 1


The official documentation shows the new API for this.


  1. Inject Sitecore.Analytics.Tracking.Identification.IContactIdentificationManager to your class


var result = identificationManager.IdentifyAs(new Sitecore.Analytics.Tracking.Identification.KnownContactIdentifier("twitter", "myidentifier"));

    //check result.ErrorCode and result.ErrorMessage for more details

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.