SupprtlyHelp centerSign in

Install the widget and identify users

Add the Supprtly widget to your website or web app with one script tag. Optionally, tell the widget who is signed in so every ticket shows the right user and customer account, and verify that identity on your server for production.

6 min read

Settings → Install is available to workspace Owners (and anyone you've given Settings access).

Three levels of setup

LevelWhat you get
1. Simple embedOne script tag. Tickets come with the name and email the person types, plus any capture data.
2. Identify usersYour app tells the widget who is signed in. Tickets show the user and their customer account, marked Unverified.
3. Verified identityYour server signs a short token. Tickets are marked Verified, people can see their recent tickets, and you can reject unverified tickets.

Start with level 1. You can add the others any time without changing your snippet.

Settings → Install
Settings → Install: the snippet, install status and identity options.

Step 1: Add the widget

  1. Open Settings → Install

    Go to Install.

  2. Choose which button to install

    Pick the support button from the Button menu. The snippet updates with that button's embed key.

  3. Copy the snippet and paste it before </body>

    Add it to every page where the button should appear (usually your site template or app layout). It looks like this:

    <script src="https://app.supprtly.com/widget.js" data-embed="wgt_YOUR_EMBED_KEY" data-mode="widget" async></script>

    Always copy the real snippet from the Install page: it has your own embed key and address.

  4. Reload your site

    The button appears in the corner you chose.

Check it's working

The Install status card shows when the widget was last loaded, the last ticket that came from an identified user and the last verified one. Click Send test ticket to send a sample ticket and confirm everything is connected.

Step 2: Identify signed-in users

Turn on Capture user & tenant info. Then, after a user signs in to your app, call Supprtly.identify() with their details, and call Supprtly.reset() when they sign out:

// After sign-in
Supprtly.identify({
  userId: "u_123",          // required: your user's unique ID
  email: "ann@acme.com",
  name: "Ann Lee",
  tenantId: "acme",         // the customer account they belong to
  tenantName: "Acme Inc",
  plan: "Pro"
});

// On sign-out
Supprtly.reset();

The Install page has ready-to-copy versions for plain JavaScript, React, Next.js and Vue. The tenant (customer account) shows on each ticket and you can filter the ticket list by it.

Step 3: Verify identity (recommended for production)

Anyone can call identify() from their browser, so unsigned identities are shown as Unverified. To make them trustworthy, your server signs a short-lived token with your workspace's secret, and the widget sends it with each ticket.

  1. Turn on 3. Verify identity

    A secret is created for your workspace. Use Reveal to see it or Copy to copy it, and store it in your server's environment variables. Never put it in browser code, a mobile app or a public repository. Only admins can reveal or copy it.

  2. Add a token endpoint to your server

    It returns a signed token (HS256) for the signed-in user. The Install page has examples for Node / Express, Next.js, Python (FastAPI) and PHP.

  3. Pass the token to identify()
    const { token } = await fetch("/api/supprtly-token").then((r) => r.json());
    Supprtly.identify({ token });

Step 4 (optional): Block unverified tickets

Step 3 marks tickets Verified. Turning on 4. Block unverified tickets also rejects any ticket that isn't verified, for example in an app where everyone signs in. Make sure every page with the widget passes a signed token first.

Rotating the secret
If a secret leaks, click Rotate. A new secret is created, and the current one keeps working for 24 hours so you can update your server without downtime.

The complete technical reference (token claims, error codes, examples) is in the SDK install guide.

Hide parts of your page

Add data-supprtly-mask to any element that shows customer data, like an account card. It's always blocked out in screenshots, recordings and replays when Hide sensitive info is on. Add data-norecord to stop clicks inside an element being recorded.

Handing it to a developer

Click Copy instructions for your developer on the Install page. It copies step-by-step instructions with your embed key and the right code for your setup, ready to paste into an email or ticket.

Ready to set up your help desk?

Create your workspace and follow the steps above.

Create your workspace