An event is any significant action performed by the user such as clicking on the CTA,
scrolling to the end of the page, etc. The event is triggered by passing an eventKey,
which is used to create the event in the Personalize Management console. Triggering events
allow you to measure conversions for an A/B test.
Call this method after initializing the SDK.
Parameters
eventKey: string
The key to trigger an event for. Ensure that an event with this key is
created in Personalize.
Trigger an event
An event is any significant action performed by the user such as clicking on the CTA, scrolling to the end of the page, etc. The event is triggered by passing an
eventKey
, which is used to create the event in the Personalize Management console. Triggering events allow you to measure conversions for an A/B test.Call this method after initializing the SDK.