Skip to main content

trackEvent(key, properties)

Tracks an event that Command AI can use as a trigger. See Events for more info.

Example

// Create a userSignedUp event that we can use to trigger a nudge or checklist
window.CommandBar.trackEvent("userSignedUp", {});

Method parameters

key Required

string

The name of the event. Used to reference the event in other places, e.g. nudge targeting.

properties

object

Optional event properties can be included and also used for exact targeting.