BridgeDocsOpen Bridge

Identify your visitors

Visitors start anonymous ("Visitor #4821"). Tell Bridge who they are and your inbox shows their name, email and the details that matter to you.

Bridge.identify

js
Bridge.identify({
  email: "jane@acme.com",
  name: "Jane Cooper",
  company: "Acme",
  plan: "Pro",          // custom attribute
  signup_date: new Date("2026-09-14"),
});

Call it as often as you like: values are merged into the contact, and empty values never erase what Bridge already knows.

Fields

KeyWhat it does
emailThe contact's email. Turns an anonymous visitor into a lead.
name, phone, companyContact details shown on the contact card and in the inbox.
Any other keyA custom attribute: text, number, true/false or date (dates are stored as YYYY-MM-DD).

Custom attributes

To see a custom attribute on the contact card, and use it in segments and automations, create it in Settings → Attributes with the same key (for example plan). Keys you haven't created yet are stored and appear as soon as you create them.

When to call it

  • After sign-in, and on each page load while the user is signed in.
  • After sign-up.
  • When a visitor submits a form with their email: newsletter, quote request, contact form.
  • At checkout, before sending them to the payment page.

Only the visitor's own details

email, name and company are what your team sees and uses to address the customer. Fill them only with data that is really about the current visitor:

  • Never with something about someone or something else, even if it's the closest thing you have: the account owner, the person a link or invite was made for, a company or team, a label like "Internal", "Test" or "Guest".
  • Not sure a value is theirs? Leave the field out. Without a name, Bridge shows one guessed from the email.
  • Anything else goes in a custom attribute with an explicit name: plan, orders, link_for, referred_by…
  • No hardcoded, sample or test values, and no identify on pages where the visitor is anonymous.

Then check the result in Bridge: sign in or submit a form with your own email, and open Contacts.

Before the script has loaded

window.Bridge exists once the widget script has loaded. To call it from code that may run earlier, queue the call: it runs as soon as Bridge is ready.

js
window.Bridge = window.Bridge || [];
window.Bridge.push(["identify", { email: "jane@acme.com", name: "Jane Cooper" }]);

When the user signs out

Forget the visitor, so the next person using the same browser starts fresh:

js
Bridge.reset();

Post your own form into the chat

Already have a contact form? Send its content into the conversation, so you can answer it from Bridge:

js
Bridge.identify({ email: form.email, name: form.name });
Bridge.send(`New message from the contact form:\n\n${form.message}`);
Visitors who type their email in the chat are identified automatically. With Stripe connected, paying customers are marked as customers too.