In-app Web
Same script as the public Web install, with one addition: tell it who's logged in.
Use this when you're embedding BigRadar inside your own SaaS product rather than a public marketing page — a support widget for signed-in users of your app. Render the template placeholders below with your own server-side templating engine before serving the page, so each visitor's script tag carries their real identity.
Snippet
json
<!-- BigRadar Messenger — identify your logged-in user -->
<script async src="https://embed.bigradar.io/web-messenger.js"
data-project-id="YOUR_APP_ID"
data-user-id="{{user.id}}"
data-name="{{user.name}}"
data-email="{{user.email}}"
data-user-workspace-id="{{workspace.id}}"
data-user-plan="{{workspace.plan}}"></script>Attributes
| Field | Type | Required | Description |
|---|---|---|---|
| data-user-id | string | Required | Your own stable user ID. Ties every conversation from this user together across sessions. |
| data-name | string | optional | Shown to your team in the inbox. |
| data-email | string | optional | Shown to your team, and usable for order/account lookups where relevant. |
| data-user-workspace-id | string | optional | Free-form — your own account/org/workspace ID, stored as a custom attribute. |
| data-user-plan | string | optional | Free-form — e.g. the user's subscription plan, stored as a custom attribute. |