I am upgrading Sitecore 8.2 to Sitecore 9.3. While upgrading Sitecore.analytics reference to target version 9.3, I'm getting error on below code.

Getting Error in the below code

Error message "does not contain a definition for AuthenticationLevel."

Tracker.Current.Contact.Identifiers.AuthenticationLevel = AuthenticationLevel.PasswordValidated; Tracker.Current.Session.Identify(contactIdentifier);

Full Code here

public void StartTracking(global::Sitecore.Security.Accounts.User user)
        if (user == null)

        if (!Tracker.IsActive)


   public Contact IdentifyContact(global::Sitecore.Security.Accounts.User user)
        if (user == null)
            return null;

        string contactIdentifier = GetContactIdentifier(user);

        if (string.IsNullOrEmpty(contactIdentifier) || contactIdentifier.Contains("anonymous") || Tracker.Current == null || Tracker.Current.Session == null)
            return null;

        Tracker.Current.Contact.Identifiers.AuthenticationLevel = AuthenticationLevel.PasswordValidated;

        return Tracker.Current.Contact;

How can we replace AuthenticationLevel in Sitecore 9.3 analytics ?

Anyone help on this issue

  • What error? .....
    – Mark Cassidy
    Apr 20, 2021 at 7:03
  • I'm getting the error like does not contain a definition for AuthenticationLevel. It seems AuthenticationLevel won't support for sitecore 9.3 analytics Apr 20, 2021 at 7:25
  • "AuthenticationLevel " is obsolete in Sitecore 9.0 onward, what code you want to update here? Apr 20, 2021 at 8:30
  • want to update the code according to sitecore 9.3 analytics Apr 20, 2021 at 9:38
  • if you can share your complete code here, it will be good. otherwise this link can help you - sitecore.stackexchange.com/questions/2981/… Apr 20, 2021 at 10:50

1 Answer 1


In 9.x Tracker.Current.Contact.Identifiers.AuthenticationLevel is gone. You only have known and unknown for each identifier you assign to a contact. If you still want to know if they were password validated vs not, then I would create a custom contact facet and put that information in there.

Also, identifying a contact is now done like the code below. This allows you to have multiple identifiers on a contact. Instead of the one identifier in 8.2

Tracker.Current.Session.IdentifyAs("emailaddress", email.ToLower()); 

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.