Configuration
The snippet works exactly as pasted. Everything on this page is optional: per-page overrides on the script tag, styling the launcher from your own CSS, and attaching your own data to each response.
Script attributes
Everything except data-study is optional. The per-page overrides are useful when one study runs in several places and you want it to sit differently in each.
- required, except in manual mode
- Your study’s publishable key. Safe to expose — it identifies the study and nothing else.
- "floating" (default) | "inline" | "manual"
- Which placement to render. The inline mode also needs the placeholder div; manual renders nothing and waits for startChat.
- inline only · default 480px
- Caps the inline launcher’s width. Any CSS length.
- floating only · default "Feedback"
- Renames the tab.
- floating only
- Overrides the configured position for this page:
right,left,bottom-rightorbottom-left. Anything else falls back to the study’s setting. - floating only
- Overrides the tab’s background colour for this page.
- inline only · "off"
- Goes on the placeholder div, not the script. Ships only a minimal reset so your own CSS owns the launcher entirely.
Styling it from your own CSS
The style settings in the editor cover most cases. When you need to go further, the inline launcher exposes a small set of custom properties. Set them on the placeholder and they win over the study’s saved settings — no !important needed.
[data-feedback-inline] {
--fb-surface: #101014;
--fb-text: #ffffff;
--fb-border: #2a2a33;
--fb-radius: 20px;
}- Card background.
- Text colour.
- Border colour.
- Border width.
- Corner radius.
- The “Give feedback” button’s background.
- The “Give feedback” button’s text colour.
- Font family.
- Colours the thumbs-down hover outline. No equivalent setting in the app — it exists so your CSS can retune it.
For finer control, the launcher exposes ::part() handles — card, prompt, cta and rating-button — so you can target individual pieces. The floating tab is ordinary page markup rather than a shadow root: style it with the .feedback-widget-tab class.
Your CSS cannot leak in by accident
The inline launcher renders in a shadow root, so your site’s stylesheets do not touch it unless you use the properties above. That is deliberate: it means the widget looks the same on every customer page it lands on.
What each response records
Alongside the conversation, every response automatically records where it came from: the page’s URL (with the query string stripped, so nothing sensitive in your links is ever stored), its path and title, the referrer, the visitor’s viewport size, language, timezone and browser. It shows up on each response in the app and in CSV exports — nothing to configure, nothing to add to the snippet.
You can attach your own metadata on top — things only your site knows, like whether the visitor is signed in or which plan they’re on. Set window.feedbackMango.meta anywhere on the page:
<script>
window.feedbackMango = {
meta: { loggedIn: true, plan: "pro" }
};
</script>It works before or after the widget script loads, and the values are read at the moment feedback is submitted — so a single-page app can keep updating metaas the visitor’s state changes and the latest values win. Strings, numbers and booleans are accepted (up to 20 entries; values are capped at 500 characters). Everything lands alongside the automatic metadata on each response. One caution: this is stored with the feedback, so pass identifiers and flags, not emails or anything else personal.
