Modules: app/util/tracking/asyncTrackingMiddleware

Classes

AsyncActionTracking

Members


<constant> ASYNC_FULFILLED_TIMEOUT :number

Time in ms until an event is considered as having timed out

Type:
  • number
Source:

<constant> ASYNC_THRESHOLD :number

Minimum duration in ms of an async action before it will be tracked. Is to prevent tracking promise actions that resolve synchronously.

Type:
  • number
Source:

<constant> pendingActions :Object

Map that will contain all currently pending actions

Type:
  • Object
Source:

<constant> TIMEOUT_EVENT_ACTION :string

Event action for the timeout events pushed to the dataLayer

Type:
  • string
Source:

<constant> TIMEOUT_EVENT_CATEGORY :string

Event category for the timeout events pushed to the dataLayer

Type:
  • string
Source:

<constant> TRACKING_EVENT_CATEGORY :string

Event category for the timing events pushed to the dataLayer

Type:
  • string
Source:

Methods


asyncTrackingMiddleware()

Middleware function that tracks the timing of all dispatched async actions. Should be added after the asyncActionMiddleware that dispatches these actions.

Source: