Installing the widget
Your study page hands you a ready-made snippet with your own key in it. This page explains the two kinds of snippet, the domain allowlist they need, and how to hand the whole job to an AI coding assistant instead.
Where to find your snippet
Open the study, stay on the Setup tab, and expand Embed. The examples below use pk_your_study_keyin place of your study’s publishable key.
On WordPress? You don’t need a snippet at all — the plugin embeds the widget with blocks.
Inline component
A compact launcher rendered directly into your page, wherever you put the placeholder. Nothing is loaded in an iframe until someone actually starts a conversation, and the chat then opens in a panel over the page.
Drop the <div> where you want the component to appear, then paste the script (anywhere on the page).
<div data-feedback-inline="pk_your_study_key" style="min-height:110px"></div> <script src="https://www.feedbackmango.com/widget.js" data-study="pk_your_study_key" data-mode="inline" defer></script>
The min-height reserves the launcher's space in plain CSS, before any JavaScript runs, so your page never jumps as the widget loads. Keep it.
Good in a page’s natural flow: under an article, beside a pricing table, at the end of a checkout confirmation. It caps at 480px wide by default and otherwise fills its container.
Floating button
A tab pinned to the edge of the screen on every page you paste it into. Clicking it opens the same chat panel.
Paste it before the closing </body> tag. A “Feedback” tab appears on the edge of the screen.
<script src="https://www.feedbackmango.com/widget.js" data-study="pk_your_study_key" defer></script>
Position and colours come from the study's style settings — you do not need to re-copy this when you change them.
Good for always-available feedback across a whole app or site. One snippet in a shared layout covers every page at once.
Using React, Vue, or another SPA framework?
The script has to run after your framework has hydrated the page, or the launcher silently never appears. See single-page apps.
Allowed domains
The widget only runs on domains your organization has allowed — anyone can read the pk_key out of your page’s HTML, and the allowlist is what keeps it useless anywhere else. Add your site’s domain before you embed: from the study’s Embed section, or under Organization settings. Subdomains are included automatically, so example.com also covers www.example.com. The list is shared by every study in the organization.
If the widget is blocked, its domain_not_allowed error carries a ready-made fix: a link to /organization?add-domain=… that opens the settings page with the blocked domain pre-filled, one click to allow.
With an AI coding assistant
If an AI assistant builds your site — Claude Code, Cursor, Lovable and friends — you don’t need to place the snippet yourself. The study’s Embed section has an AI prompt tab next to the snippet: one copy-paste hands your assistant the snippet with your key already in it, placement guidance, the framework pitfalls, and the steps to verify the install actually worked.
The same instructions, without a key, live at https://www.feedbackmango.com/llms-install.md — handy when the assistant is already looking at this site on its own.
Changing settings later
The snippet carries the key and nothing else. Prompts, placement, colours and the rating type all travel separately, so editing the study updates every page it is already embedded on — you never re-paste to change how it looks or what it asks.
Changes reach live pages within about five minutes, since the configuration is cached at the edge. Your own preview in the app updates immediately.
