Skip to main content

Location Contexts

LocationContexts are used to populate a Tracker's or Event's location_stack properties. A Location Stack is meant to describe accurately where an Event originated in the UI, e.g. Sections, Menus, etc.

See the diagram below for the Location Contexts. Click each to learn more.

graph LR AbstractContext["AbstractContext<br><span class='properties'>id: string<br />_type: string</span>"] --> AbstractLocationContext; AbstractLocationContext --> SectionContext; SectionContext --> WebDocumentContext["WebDocumentContext<br><span class='properties'>url: string</span>"]; SectionContext --> ScreenContext["ScreenContext<br /><span class='properties'>screen: string</span>"]; SectionContext --> ExpandableSectionContext; SectionContext --> MediaPlayerContext; SectionContext --> NavigationContext; SectionContext --> OverlayContext; AbstractLocationContext --> ItemContext; ItemContext --> InputContext; ItemContext --> ActionContext["ActionContext<br><span class='properties'>text: string"]; ActionContext --> ButtonContext; ActionContext --> LinkContext["LinkContext<br><span class='properties'>href: string"]; click AbstractContext "/docs/taxonomy/reference/abstract-contexts/AbstractContext" "See details" _self click AbstractLocationContext "/docs/taxonomy/reference/location-contexts/AbstractLocationContext" "See details" _self click SectionContext "/docs/taxonomy/reference/location-contexts/SectionContext" "See details" _self click WebDocumentContext "/docs/taxonomy/reference/location-contexts/WebDocumentContext" "See details" _self click ScreenContext "/docs/taxonomy/reference/location-contexts/ScreenContext" "See details" _self click ExpandableSectionContext "/docs/taxonomy/reference/location-contexts/ExpandableSectionContext" "See details" _self click MediaPlayerContext "/docs/taxonomy/reference/location-contexts/MediaPlayerContext" "See details" _self click NavigationContext "/docs/taxonomy/reference/location-contexts/NavigationContext" "See details" _self click OverlayContext "/docs/taxonomy/reference/location-contexts/OverlayContext" "See details" _self click ItemContext "/docs/taxonomy/reference/location-contexts/ItemContext" "See details" _self click InputContext "/docs/taxonomy/reference/location-contexts/InputContext" "See details" _self click ActionContext "/docs/taxonomy/reference/location-contexts/ActionContext" "See details" _self click ButtonContext "/docs/taxonomy/reference/location-contexts/ButtonContext" "See details" _self click LinkContext "/docs/taxonomy/reference/location-contexts/LinkContext" "See details" _self

Diagram: Location Contexts