Track events

How to track user actions on Segment and send them to Palabra

Now that your users are identified and both Palabra and Segment know who they are, you are ready to start tracking their user actions.

If you are using Segment's analytics.js library you should track your user actions like this:

your-app.js
// analytics -> Segment's analytics.js

analytics.track("User Registered", {
  plan: "Pro Annual",
  accountType: "Facebook"
});

Important: you don't need to send a user ID or email address on the track method again. Segment will keep a cookie on the user's browser after you identify them and will link each event you are tracking with track to the identified user.

Some things to pay attention to when sending your user data to Palabra:

  1. The name of the event (e.g. "User registered") is the name of your user action. Make sure to keep track of the names of your user actions as you'll need to pick them later from Palabra's UI.

Last updated