User Identification
User Identification helps you to not only segment your users but also to see more information about the user who responded to a survey. This helps you to target surveys to specific user segments and see more information about the user who responded to a survey.
Understanding Identified vs Unidentified Users
In Formbricks, understanding the difference between identified and unidentified users is crucial for effective survey segmentation and targeted feedback collection.
Feature | Unidentified Users | Identified Users |
---|---|---|
Show surveys based on trigger actions | β | β |
Set recontact details to avoid survey fatique | β | β |
Target a subset of users using attributes & segments | β | β |
Collect user information in Formbricks | β | β |
Track custom attributes | β | β |
Counts towards your monthly tacked user (MTU) limit | β | β |
Recommended for public-facing websites | β | β |
Recommended for web apps after login | β | β |
Identified Users
Identified users are those for whom specific information has been set, notably the userId. This identification allows for more precise targeting of surveys and a deeper understanding of the feedback provided. When enabled, all information specified by you and all actions are sent to Formbricks.
This method is recommended for applications where users are required to log in and will often return.
Setting User ID
To enable user identification, set the userId
in the init()
call of Formbricks. The user will show up in the Formbricks dashboard only if the userId
is set. Use a unique string, like a database ID or a unique email address. You can also anonymize the identifier, as long as it is unique for each user.
Enhanced Initialization with User Attributes
Set user attributes in Formbricks during initialization along with the userId
.
Setting Custom User Attributes
Use the setAttribute
function to set custom attributes for the user (e.g., name, plan).
Note: the number of different attribute classes (e.g., βPlan,β βFirst Name,β etc.) is currently limited to 150 attributes per environment.
The setAttribute
function works like this:
Logging Out Users
When a user logs out of your webpage, also log them out of Formbricks to prevent activity from being linked to the wrong user. Use the logout function:
Was this page helpful?