> For the complete documentation index, see [llms.txt](https://docs.palabra.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.palabra.io/sources/getting-data-from-segment/track-events.md).

# 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](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/) library you should track your user actions like this:

{% code title="your-app.js" %}

```javascript
// analytics -> Segment's analytics.js

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

{% endcode %}

{% hint style="warning" %}
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.
{% endhint %}

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.
