Semust Metrik
Identifying Users
Link an anonymous visitor to a known user with identify().
semustMetrik.identify() links a previously anonymous visitor to a user in your own system. From then on, that visitor's sessions appear in the dashboard under their name.
Product page: Semust Metrik.
Usage
Call it once, after the user logs in:
semustMetrik.identify("[email protected]", {
name: "Jane Doe",
plan: "pro",
company: "Example Inc."
});The first argument uniquely identifies the user — an email address or your own user id. The second is optional.
Limits
| Rule | Value |
|---|---|
| User id | 255 characters maximum |
| Number of traits | 10 maximum |
| Trait name | 64 characters maximum; characters outside a-z, 0-9, _, - are removed |
| Trait value | 255 characters maximum |
Values are stored as text, so numbers and true / false are fine to send.
Use plain ASCII in trait names
Anything outside the allowed characters is stripped, so a trait named société becomes
socit. Write trait names in plain ASCII: societe.
When to call it
Right after login
Calling it once when the user signs in is enough.
When details change
Call it again after something like a plan upgrade to refresh the traits.
Calling it repeatedly with the same details is harmless; duplicates are merged.
Calling before the script loads
Your login flow may run before the Metrik script is ready. In that case, queue the call — see Framework guides.
Where it appears in the dashboard
The Sessions → Identified Visitors tab lists your identified users: who they are, which source they came from, how much they have spent and when they were last seen.
Selecting a visitor opens their full history, grouped by date.
Privacy
identify() sends whatever you pass it to Metrik. Send only the fields you genuinely
need, and never send sensitive data such as payment details or passwords.
