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.


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

Method parameters

key Required


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

properties Required


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