Tracking Custom Events

You can record custom events in Braze to learn more about your app’s usage patterns and to segment your users by their actions on the dashboard.

Before implementation, be sure to review examples of the segmentation options afforded by Custom Events vs. Custom Attributes vs Purchase Events in our Best Practices section.

1
appboy.logCustomEvent(YOUR_EVENT_NAME);

See the logCustomEvent documentation for more information.

Adding Properties

You can optionally add metadata about custom events by passing a properties object with your custom event.

Properties are defined as key-value pairs. Keys are strings and values can be string, numeric, boolean, or Date objects.

1
appboy.logCustomEvent(YOUR_EVENT_NAME, {key: 'value'});

See the logCustomEvent documentation for more information.

WAS THIS PAGE HELPFUL?