Core Factories
Automatically generated factories based on the taxonomy schema.
caution
These are core-level APIs needed only when diving into low-level tracking via tagLocation or trackEvent.
Location Context Factories
These factories produce LocationContext instances ready to be handed over to tagLocation.
Location Context Factory list
makeApplicationContext = (props: {
id: string
}) => ApplicationContext
makeContentContext = (props: {
id: string
}) => ContentContext
makeExpandableContext = (props: {
id: string
}) => ExpandableContext
makeInputContext = (props: {
id: string
}) => InputContext
makeItemContext = (props: {
id: string
}) => ItemContext
makeLinkContext = (props: {
id: string,
href: string
}) => LinkContext
makeMediaPlayerContext = (props: {
id: string
}) => MediaPlayerContext
makeNavigationContext = (props: {
id: string
}) => NavigationContext
makeOverlayContext = (props: {
id: string
}) => OverlayContext
makePressableContext = (props: {
id: string
}) => PressableEvent
Event Factories
These factories produce Event instances ready to be handed over to trackEvent.
Common parameters
All Event factories share some common, optional, parameters:
type | default value | ||
---|---|---|---|
optional | location_stack | AbstractLocationContext | [] |
optional | global_contexts | AbstractGlobalContext | [] |
Event Factory list
makeApplicationLoadedEvent = (props?: {
location_stack?: AbstractLocationContext[],
global_contexts?: AbstractGlobalContext[]
}) => ApplicationLoadedEvent
makePressEvent = (props?: {
location_stack?: AbstractLocationContext[],
global_contexts?: AbstractGlobalContext[]
}) => PressEvent
makeInputChangeEvent = (props?: {
location_stack?: AbstractLocationContext[],
global_contexts?: AbstractGlobalContext[]
}) => InputChangeEvent
makeInteractiveEvent = (props?: {
location_stack?: AbstractLocationContext[],
global_contexts?: AbstractGlobalContext[]
}) => InteractiveEvent
makeHiddenEvent = (props?: {
location_stack?: AbstractLocationContext[],
global_contexts?: AbstractGlobalContext[]
}) => HiddenEvent
makeMediaEvent = (props?: {
location_stack?: AbstractLocationContext[],
global_contexts?: AbstractGlobalContext[]
}) => MediaEvent
makeMediaLoadEvent = (props?: {
location_stack?: AbstractLocationContext[],
global_contexts?: AbstractGlobalContext[]
}) => MediaLoadEvent
makeMediaPauseEvent = (props?: {
location_stack?: AbstractLocationContext[],
global_contexts?: AbstractGlobalContext[]
}) => MediaPauseEvent
makeMediaStartEvent = (props?: {
location_stack?: AbstractLocationContext[],
global_contexts?: AbstractGlobalContext[]
}) => MediaStartEvent
makeMediaStopEvent = (props?: {
location_stack?: AbstractLocationContext[],
global_contexts?: AbstractGlobalContext[]
}) => MediaStopEvent
makeNonInteractiveEvent = (props?: {
location_stack?: AbstractLocationContext[],
global_contexts?: AbstractGlobalContext[]
}) => NonInteractiveEvent
makePressEvent = (props?: {
location_stack?: AbstractLocationContext[],
global_contexts?: AbstractGlobalContext[]
}) => PressEvent
makeVisibleEvent = (props?: {
location_stack?: AbstractLocationContext[],
global_contexts?: AbstractGlobalContext[]
}) => VisibleEvent