Analytics Tracking
The Analytics Tracking module adds proxy methods for the Analytics Tracking service.
Dependencies
The Analytics Tracking module is dependent on the following modules:
Methods
recordInteraction
Calls the Analytics Tracking service to record the provided interaction.
Parameters:
interaction (object): The interaction to record
Returns: A promise that will be resolved with the created interaction record, if successful, or an error otherwise.
recordDataEvent
Calls the Analytics Tracking service to record the provided data event.
Parameters:
dataEvent (object): The data event to record
Returns: A promise that will be resolved with the created data event record, if successful, or an error otherwise.
Automatic Data Event Recording
A data event will be automatically recorded for any schemas in the project that have Orbita post data hooks enabled.