Skip to contentSkip to content
Chat widget

Show signed-in customers by name and email in the chat

When a customer is logged in to your site, Frosvo shows their name and email instead of "Visitor 012". Add one line to your page, and optionally sign it to prove who they are.

Last updated

Customers who log in to your site expect you to know who they are. Frosvo can show their name and email to your team straight away, the way other chat tools do, instead of a visitor number.

Step 1: tell the chat who is signed in

On the pages where a customer is logged in, add this after the Frosvo snippet:

`` Frosvo.setUser({ email: "ada@example.com", name: "Ada Khan" }); ``

Fill the email and name from your own system, on the server, for the logged-in person only. That is all: your team now sees Ada Khan in the inbox, the visitor list and the notifications. On a customer's first page the chat may take a second to load; the name appears as soon as it does.

The WordPress plugin and the WHMCS module can do this for you: turn on their option to send logged-in users' details (in WHMCS it is called Signed-in clients).

Step 2 (recommended): prove it's them

Anyone could type any email into a page's code, so without a signature Frosvo shows the details but marks them not verified. To verify:

  1. Go to Settings → Websites and click Identity verification.
  2. Choose the website and click Turn on. Copy the secret it shows and keep it on your server only. Never put it in a web page. If you lose it, click Make a new secret; the old one then stops working.
  3. On your server, compute the signature for each signed-in customer with the secret (the window shows ready-to-copy examples for Node and PHP) and pass it along:

`` Frosvo.setUser({ id: user.id, email, name, hash }); ``

Verified customers get a verified badge, and their conversations follow them across browsers and devices.

What your team sees

  • The visitor's name and email in the inbox, visitor list and notifications, instead of "Visitor 012".
  • A contact record is created, so you can find them later in Contacts.
  • If they were already chatting anonymously when they logged in, it is the same conversation.

Common problems

  • Still shows "Visitor 012". Check that setUser runs on the page after the Frosvo snippet, with a non-empty email.
  • Verification fails. The signature must be made with the secret of that same website, from the exact email or ID you pass.
  • Several websites. Each website has its own secret.

Related: put the chat on your website and widget settings.

Frequently asked questions

Do I have to sign it?

No. Without a signature the name and email still show, marked as not verified. Signing it proves the person really is that customer, and lets their history follow them across devices.

Does a logged-in customer start a new visitor on every page?

No. The same person stays the same visitor from page to page and after a reload.

What if someone browses first and logs in later?

They stay the same visitor, and now have their name and email.

What if a different person logs in on the same browser?

They become a new visitor. The first person's chats are not shown to them.