A feedback widget that sits quietly in the corner of your product and collects feature requests, bug reports, and general feedback while users are still in context. Paste one snippet and you are live in minutes.
Free to start · No credit card required · One script tag to install
A feedback widget is a small button that stays in the corner of a website or web app. Clicking it opens a short form, so a visitor can report a bug, request a feature or leave a comment without leaving the page or writing an email.
Because it sits where people already are, it catches feedback at the moment someone runs into a problem, while the details are still fresh. FlagUp's widget sends every submission to one inbox, next to the feedback that arrives through your public portal.
Read the full guide: what a feedback widget is and when to use one
Copy and paste. No build step, no package manager, no configuration file required.
Create a FlagUp account and add the site you want feedback on.
Your project key is available in your FlagUp dashboard under Settings → Widget.
Paste the snippet directly before the closing </body> tag in your HTML.
<script src="https://flagup.io/js/feedback-widget.js" async defer data-project-key="YOUR_PROJECT_KEY"></script>
There is no npm package to install. Every framework loads the same script, so the only question is where to put it.
Use the one-line snippet above, or set options in code with a config object placed before the script.
<script>
window.FeedbackWidgetConfig = {
projectKey: 'YOUR_PROJECT_KEY',
position: 'bottom-left',
color: '#4f46e5'
};
</script>
<script src="https://flagup.io/js/feedback-widget.js" async defer></script>
Load the script once, from a component mounted at the root of your app. The id check stops it loading twice, for example under React Strict Mode.
import { useEffect } from 'react';
export function FlagUpWidget({ projectKey }) {
useEffect(() => {
if (document.getElementById('flagup-widget')) return;
const script = document.createElement('script');
script.id = 'flagup-widget';
script.src = 'https://flagup.io/js/feedback-widget.js';
script.async = true;
script.dataset.projectKey = projectKey;
document.body.appendChild(script);
}, [projectKey]);
return null;
}
Add the script to your root layout with next/script. Data attributes are passed through to the script tag.
// app/layout.jsx
import Script from 'next/script';
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>
{children}
<Script
src="https://flagup.io/js/feedback-widget.js"
strategy="afterInteractive"
data-project-key="YOUR_PROJECT_KEY"
/>
</body>
</html>
);
}
In a single-page app, load the widget once, in the root layout or top-level component. It stays on the page as people move between routes.
Most teams set the look in the FlagUp dashboard and paste the snippet unchanged. You can also set options on the script tag, and those take priority over your saved settings.
| Attribute | Values | What it changes |
|---|---|---|
data-project-key |
your project key | Required. Connects the widget to your FlagUp project. |
data-position |
bottom-right, bottom-left | Which bottom corner the button sits in. |
data-color |
a hex color, such as #4f46e5 | Accent color of the button and the panel. |
data-text |
a short label | The button label. An empty value shows an icon-only button. |
data-size |
small, medium, large | Size of the button. |
data-icon |
message-dots, question-circle, smiley, lightbulb, flag, envelope | The icon on the button. |
data-locale |
en, fr, es, pt | Language of the widget. Without it, the widget follows the page's lang attribute, then the browser. |
data-sentiment-style |
emoji, stars, thumbs, numeric, agreement, feeling | How the rating question is shown. |
data-zindex |
a number | Stacking order, if another element covers the button. |
Options set in window.FeedbackWidgetConfig apply only where neither the script tag nor your saved settings set a value.
Every submission lands in your FlagUp feedback inbox with the category the sender picked, ready for your team to review.
A small floating button appears on your page. Users click it to open the feedback panel without leaving what they were doing.
The panel lets users choose between a feature request, bug report, or general comment. They write it and hit send, all without leaving the page.
The submission lands in your inbox with the category the sender chose. On paid plans, you can run AI analysis over approved feedback to score sentiment, tag topics and group likely duplicates.
Prioritize, assign, or push to your roadmap directly from the inbox. Every submission stays connected to the feature request it belongs to.
No framework dependency. If your page can load a script tag, it can load the FlagUp widget.
The widget uses vanilla JavaScript with no runtime dependencies. If it is not listed here, it almost certainly still works.
Lightweight, customizable, and connected to your FlagUp inbox from day one.
Paste one line of HTML before your closing body tag. No build step, no npm package, no configuration file.
Users pick between feature request, bug report, or general feedback before submitting. Submissions arrive pre-sorted.
The script loads with async and defer, so it is fetched off the critical path and is designed to keep its impact on page rendering minimal.
Set the widget accent color from your dashboard. The button and panel match your product rather than looking third-party.
On paid plans, AI analysis scores the sentiment of approved feedback, so you can sort by how strongly people feel, not only by date.
On paid plans, AI analysis groups submissions that describe the same issue, so you review one picture instead of scattered repeats.
The same widget can also run an AI support assistant that answers visitor questions from your own knowledge base before they ever write a feedback item. See how the AI support assistant works
No heavy setup, and no features locked behind an enterprise tier.
No SDK, no npm package, no build step. Paste one line before your closing body tag and the widget is live.
Start free with the widget and the inbox. Paid plans add AI analysis of the feedback you approve: sentiment, topic tags, priority scores and duplicate grouping.
Vanilla JavaScript with zero dependencies. Works with React, Vue, Angular, static HTML, WordPress, or anything else that can load a script tag.
Set the accent color from your dashboard so the widget looks native to your site instead of a bolted-on third-party tool.
Common questions about installing and using the FlagUp feedback widget.
Paste one script tag into your HTML before the closing body tag. The widget loads asynchronously, off the critical rendering path. No framework or build step required.
Yes. The FlagUp widget is a plain JavaScript file with no framework dependency. It works with React, Vue, Angular, Next.js, Nuxt, plain HTML, and any server-side framework like Laravel or Rails.
The script loads with async and defer attributes, so it is not fetched or executed on the critical rendering path. The widget bundle is under 30 KB gzipped.
Yes. The FlagUp feedback widget is included on the free plan. Advanced customization options are available on paid plans.
Yes. The widget is translated into English, French, Spanish and Portuguese. Set data-locale on the script tag to choose one, or leave it out and the widget follows the lang attribute of your page, then the visitor's browser.
Yes. Load the script once from your root layout or top-level component, and the widget stays on the page while people move between routes. The React and Next.js examples on this page do exactly that.
Still have questions? [email protected]
One script tag. Free forever. Every submission lands in a single inbox connected to your roadmap and feature requests. Our guide to building an in-app feedback system people actually use covers where to place the trigger.
Free plan forever · No credit card required · Live in minutes