Skip to main content

trackEvent(key, properties)

Tracks an event that CommandBar can use as a trigger. See our documentation page on events for more details.

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 Required

object

Properties to pass with the event. This is currently unused — you should simply pass an empty object ({}).