IdentityContext

A GlobalContext to track the identity of users across sessions, platforms, devices. Multiple can be present.

The id field is used to specify the scope of identification e.g. backend, md5(email), supplier_cookie. The value field should contain the unique identifier within that scope.

graph LR AbstractContext["AbstractContext<br><span class='properties'>id: string<br />_type: string</span>"] --> AbstractGlobalContext; AbstractGlobalContext --> IdentityContext["IdentityContext<br><span class='properties'>value: string</span>"]; class IdentityContext diagramActive; click AbstractGlobalContext "/docs/taxonomy/global-contexts" "See details" _self

Diagram: IdentityContext inheritance

Properties

typedescription
idstringSpecifies the scope of identification e.g. backend, md5(email), supplier_cookie.
_typestringString literal used during serialization. Should always match the Context interface name.
valuestringThe unique identifier for this user/group/entity within the scope defined by id.
setting of properties

The tracker will automatically set all properties when using the official Plugin. On manual creation, id and value must be provided.