Identify event
How to identify your users on Segment and send user properties to Palabra
Last updated
Was this helpful?
How to identify your users on Segment and send user properties to Palabra
Last updated
Was this helpful?
Identifying users is the first step and one of the most important ones. With the 'Identify' action you are able to send Segment (and Palabra) your user's email address, first and last name, company name, and anything that matters to your business.
According to Segment's documentation, an 'Identify' event should be triggered when a user creates an account, logs in, or updates their profile.
So let's start by triggering an 'Identify' event after user's sign up.
Go to your frontend app and find the place where user's complete their sign-up. Here we'll want to run the identify
method every time a user completes the sign-up successfully.
Once you found that file copy and paste the code below:
Some things to notice:
The object analytics
is added to your page with the Segment script that you pasted in the head of your page.
This script assumes that the object analytics
already exists. You may want to check that before executing this method.
The first argument in the function is the user ID. This should be your platform's user ID for identifying this user.
The second argument is an object with a list of properties. The only property that's required by Palabra is email
. You should include any properties that will be relevant for this user. For example, if you ask users for their company role when they sign up, you may add role: "[name of the role]"
to this object.
Although Segment doesn't have required users properties, Palabra does, so make sure you are always sending:
An email. Palabra uses email addresses to identify users, so make sure you are sending one.
As Segment's documentation suggests, you should execute this event after users create an account, log in or update their profile, so make sure that you are doing so.
Now that you identified your users, you are ready to start tracking their actions.
A user ID. Make sure you are using the same user ID when tracking user actions. .