Classes
Members
-
<constant> ASYNC_FULFILLED_TIMEOUT :number
-
Time in ms until an event is considered as having timed out
Type:
- number
-
<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
-
<constant> pendingActions :Object
-
Map that will contain all currently pending actions
Type:
- Object
-
<constant> TIMEOUT_EVENT_ACTION :string
-
Event action for the timeout events pushed to the dataLayer
Type:
- string
-
<constant> TIMEOUT_EVENT_CATEGORY :string
-
Event category for the timeout events pushed to the dataLayer
Type:
- string
-
<constant> TRACKING_EVENT_CATEGORY :string
-
Event category for the timing events pushed to the dataLayer
Type:
- string
Methods
-
asyncTrackingMiddleware()
-
Middleware function that tracks the timing of all dispatched async actions. Should be added after the asyncActionMiddleware that dispatches these actions.