Note, this does not change the visitor’s experience. The modal and chat functionality is the same for both verified and anonymous users.
⚠️ IMPORTANT: Script Order MattersThat’s it! Franko will now associate feedback with this user.
Thewindow.FrankoUser
identity 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:
user_id
- Your unique identifier for the useruser_metadata
- Only name
and email
(both optional)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 |
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 |