Note, this does not change the visitor’s experience. The modal and chat functionality is the same for both verified and anonymous users.
How it works
Add this snippet before your Franko embed script:⚠️ IMPORTANT: Script Order MattersThat’s it! Franko will now associate feedback with this user.
Thewindow.FrankoUseridentity snippet must be executed before the main Franko embed script loads, otherwise user data will be missed.
Reliable Pattern: Place the identity information in the same script tag as your Franko loader to guarantee correct order:
What data is stored?
user_id- Your unique identifier for the useruser_metadata- Onlynameandemail(both optional)
Common patterns
| Pattern | Implementation |
|---|---|
| Show user info only when logged in | Wrap the snippet in your auth check |
| Different user data per page | Update window.FrankoUser dynamically |
Compatible with embedding methods
This identity pattern works with both Chat Bubbles and Custom Triggers. Not compatible with Shareable Links, but you can configure to ask for name and email on the “Connect” tab.What if the snippet is missing?
The User column shows “Anonymous” instead of the user details.FAQ
| Question | Answer |
|---|---|
| Is this required? | No – skip it if anonymous feedback is fine |
| Does it work with Direct Links? | No – direct links open in new tabs without access to your session |
| Can I update user data dynamically? | Yes – set window.FrankoUser before calling FrankoModal.open() |
| Is HTTPS required? | Yes – always use HTTPS for security |