PathContext

A GlobalContext describing the path where the user is when an event is sent.

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

Diagram: PathContext inheritance

Properties

typedescription
idstringUnique string to be combined with the Context Type (_type) for Context instance uniqueness.
_typestringString literal used during serialization. Should always match the Context interface name.
setting of the id & type

The tracker will automatically set the id and _type based on path on web (including URL parameters, hashes) and pathname on native. When this is not possible on a specific platform, it will ask for a manual id and _type to be set.