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.
Settings → Install is available to workspace Owners (and anyone you've given Settings access).
Three levels of setup
| Level | What you get |
|---|---|
| 1. Simple embed | One script tag. Tickets come with the name and email the person types, plus any capture data. |
| 2. Identify users | Your app tells the widget who is signed in. Tickets show the user and their customer account, marked Unverified. |
| 3. Verified identity | Your 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.

Step 1: Add the widget
- Open Settings → Install
Go to Install.
- Choose which button to install
Pick the support button from the Button menu. The snippet updates with that button's embed key.
- 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.
- 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.
- 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.
- 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.
- 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.
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.