Methods
-
<static> self.click(item, data)
-
Send a click event.
Parameters:
Name Type Description itemdata -
<static> self.emit(eventType, arguments)
-
Emit an event to Insights.
Parameters:
Name Type Description eventTypeThe type of event to emit. argumentsAdditional arguments to send with the event. -
<static> self.emitterForField(item, data, emitFunction)
-
Get an Insights emitter for a field
Parameters:
Name Type Description itemThe field item to retrieve the emitter for. dataThe data context of the item. emitFunctionfunction The callback function the emitter is provided to. -
<static> self.emitterForSection(item, emitFunction)
-
Get an Insights emitter for a page, modal or dialog.
Parameters:
Name Type Description itemThe section item to retrieve the emitter for. Must be a modal page or dialog. emitFunctionfunction The callback function the emitter is provided to. -
<static> self.fieldHelp(item, data)
-
Send a field help event.
Parameters:
Name Type Description itemdata -
<static> self.fieldNavigation(item, data)
-
Send a field navigation event.
Parameters:
Name Type Description itemdata -
<static> self.milestone(subType)
-
Send a milestone event.
Parameters:
Name Type Description subType -
<static> self.navigation(page)
-
Send a navigation event.
Parameters:
Name Type Description page -
<static> self.sectionCompletion(page)
-
Send a section completion event.
Parameters:
Name Type Description page- Deprecated:
-
- Use sectionExit instead
-
<static> self.sectionExit(page)
-
Send an exit event for a page
Parameters:
Name Type Description page -
<static> self.segment(name, value)
-
Send a segment event.
Parameters:
Name Type Description namevalueExample
Create a segment in Journey Analytics.
Insights.segment("Age", "18-25"); -
<static> self.validation(errorInfos, trigger)
-
Send a validation event.
Parameters:
Name Type Description errorInfostrigger