Skip to content

How to add a tracking event to Segment.io via Java

Fionna Chan edited this page Oct 9, 2020 · 1 revision

For analytics purpose, we are using Segment.io to track user events.

A new track event can be added without any new configuration / setup / action on the Segment.io admin panel.

Walkthrough

  1. Add a String here for the event name.

  2. Add a function for the track event with your event name String.

  3. Use it in the view.

  4. For example, after editing the notes field, you'll see this event being fired.

Reference

For more details of the tracking event, please check the links below:

https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/#track https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/quickstart/

Clone this wiki locally