Constructor
new AnalyticsManager(options)
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Analytics Manager options Properties
|
- Implements:
Methods
load() → {Promise.<undefined>}
Loads necessary resources and performs any additional set up required to create the connection to the Analytics Provider.
- Implements:
- See:
-
- module:utils.loadScript to load a library from a script.
Returns:
Returns a resolved promise when the resources are fully loaded.
- Type
- Promise.<undefined>
track()
Validate and transform the analytics event and send it to its analytics connectors.
- Implements:
trackPageLoad(initPagePromise) → {Promise}
Record performance metrics from initializing a page.
Parameters:
Name | Type | Description |
---|---|---|
initPagePromise |
Promise | The promise that initializes a page. |
Returns:
The response from an initialized page.
- Type
- Promise