Methods
send(action, [interactionData], [contextualAttributes])
#
Sends an analytics event.
If the event sender is an experiment, then the event is decorated with experiment-related data
before it is sent. The experiment-related data are specified and documented in
the fragment/analytics/product_metrics/experiment schema fragment.
If per-event contextual attributes are passed via the contextualAttributes param, then they are
added to the event before it is sent.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
action |
string | The action that the user enrolled in this experiment took, e.g. "hover", "click" |
|
interactionData |
Object |
optional |
Additional data about the action that the user enrolled in the experiment took |
contextualAttributes |
Array.<string> |
optional |
Per-event contextual attributes |
Sends an analytics event.