Profiles

A profile is what we call a visitor when you add custom properties to it.

Profiles are a way to keep track of your authenticated users — those with a persistent ID in your application, such as a email or userId — and are an excellent tool for analyzing user behavior when combined with user journeys. Send in any user properties, so you can later explore them by clicking on a specific visitor on the visitors page.

We merge users by either email or userId. If we receive a field that is already set, it gets overwritten.

Use the setUser() method to identify a visitor and set custom properties (available in both client and server libraries).

Example:

// from client or server
seline.setUser({
userId: "unique-user-id", // userId or email are required
name: "John Wayne", // name will be displayed on the visitor list and profile
plan: "enterprise",
credits: 140,
projects: ["Project A", "Project B"],
});
Click anywhere to copy

We recommend setting the user right after their session starts, so all their page views and custom events are tracked properly.

IMPORTANT

We do not share or sell your visitors' data with any third parties. However, when sending sensitive data to us, such as email, name, address, etc., make sure to comply with your local data protection laws and regulations. Read more at our Privacy Policy page.

IMPORTANT

If you are using Seline with automated pages tracking on your single page application authorized routes and are invoking seline.setUser() on every page refresh, there might be a case where the initial automated page tracking happens before the seline.setUser() method is called. To avoid this, you can call seline.init() with autoPageView: false option and then enable it with seline.enableAutoPageView() right after the seline.setUser() method is called.