User Identification
Attach a customer name and email to each submission so the inbox shows a real person.
HTML
<button
data-sf
data-sf-name="Ada Lovelace"
data-sf-email="ada@example.com"
>
Give Feedback
</button>You can also set data-sf-name and data-sf-email on the <html> element for a site-wide default. Use that when visitors open the widget from the floating button, which has no host element of its own.
In a single-page app, call identify() after login instead of putting attributes on every button. Later calls merge — you can pass only name or only email. Call identify(null) on logout. Identity is remembered for the current tab.
JavaScript
window.SupaFeedback.identify({
name: currentUser.name,
email: currentUser.email,
});A data-sf-name or data-sf-email attribute on the trigger or <html> still wins over identify(). An attached email also opts the visitor in for status-update emails.