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 Required
object
Properties to pass with the event. This is currently unused — you should simply pass an empty object ({}
).