Docs · Feedback widget
Install the Peeqback feedback widget
One script tag adds a Feedback button to your site or app. People send ideas and bug reports with a screenshot, vote on ideas and read your updates without leaving the page. The widget is on every plan. What the widget does
Last updated November 29, 2026.
1. Add your domains
In Peeqback, open Settings → Widget → Allowed domains and add every site the widget will run on, like https://app.acme.com. Matching is exact: acme.com and www.acme.com count as different sites. Add localhost for local testing.
On any other domain the widget doesn't load, so nobody can copy your key onto their site.
2. Paste the script
Copy the snippet from Settings → Widget → Install. It already holds your workspace key. Paste it before </body> on every page.
<script
async
src="https://peeqback.com/widget.js"
data-feedback-widget="true"
data-workspace-key="YOUR_WORKSPACE_KEY"
></script>Load it once, at the root of your app. Where that is depends on your stack:
// app/layout.tsx
import Script from "next/script";
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
{children}
<Script
src="https://peeqback.com/widget.js"
strategy="afterInteractive"
data-feedback-widget="true"
data-workspace-key="YOUR_WORKSPACE_KEY"
/>
</body>
</html>
);
}No-code site builders. Paste the HTML snippet into the site-wide code setting:
- Webflow: Site settings → Custom code → Footer code, then publish.
- Framer: Site settings → General → Custom code → End of
<body>. - WordPress: your theme's footer, or any plugin that adds code to the footer of every page.
- Google Tag Manager: a Custom HTML tag with the snippet, fired on All Pages. Check it in Preview mode before publishing.
Single-page apps. The widget stays mounted while your router changes pages, and it records the page a person is on when they press Send, not the page it first loaded on. If the script is added twice, the second copy does nothing.
3. Tell it who's signed in
Identify signed-in users and every post, vote and comment is credited to them. Posts also show their company, plan and monthly spend in your dashboard, if you include them.
Turn on Know who sent each post in Settings → Widget. The snippet then starts with this small queue, so calls you make before the widget loads aren't lost:
<script>
window.$peeqbackq = window.$peeqbackq || [];
window.peeqback = window.peeqback || new Proxy({}, {
get: (_, prop) => (...args) => window.$peeqbackq.push([prop, ...args])
});
</script>After sign-in, pass a token your server signed. Call reset() when they sign out.
// After sign-in. The token comes from your server (below).
window.peeqback.identify({ token: peeqbackToken });
// When the user signs out:
window.peeqback.reset();Sign the token on your server with the Identity secret from Settings → Widget → Verify who's posting. Never put the secret in browser code.
import jwt from "jsonwebtoken";
// On your server, for the signed-in user. Never ship the secret to the browser.
const peeqbackToken = jwt.sign(
{
id: user.id,
email: user.email,
name: user.name,
// Optional: shown on every request this user posts.
company: { id: org.id, name: org.name, plan: org.plan, monthlySpend: org.mrr },
attributes: { role: user.role },
},
process.env.PEEQBACK_IDENTITY_SECRET,
{ algorithm: "HS256", expiresIn: "1h" }
);| Claim | What it is |
|---|---|
| id (or sub) | Required. Your user's ID. |
| exp | Required. Expiry, at most 30 days ahead. An hour is plenty. |
| email, name | Optional. Shown on their posts and used for ship emails. |
| avatarUrl | Optional. An https image URL. |
| company | Optional. { id, name, plan, monthlySpend }, shown on each post they send. |
| attributes | Optional. Up to 25 extra fields, like role or signup date. |
Tokens are HS256 JWTs of up to 8 KB. You can rotate the secret; the old one keeps working for 24 hours. Turn on Only trust verified users to ignore any name or email that didn't come in a signed token.
Open it from your own button
Call window.peeqback.open() with "feedback" (the form), "board" (the Ideas tab), "changelog" (the Updates tab) or "home". To hide the floating Feedback button and use only your own, add data-hide-launcher="true" to the script tag.
<!-- Hide the floating button and open the widget from your own menu -->
<script
async
src="https://peeqback.com/widget.js"
data-feedback-widget="true"
data-workspace-key="YOUR_WORKSPACE_KEY"
data-hide-launcher="true"
></script>
<button onclick="window.peeqback.open('feedback')">Send feedback</button>
<button onclick="window.peeqback.open('board')">Ideas</button>
<button onclick="window.peeqback.open('changelog')">What's new</button>With the launcher hidden, people close the widget with its close button or the Esc key. If the release popup is on, it still appears.
Customize it
Three options live on the script tag:
<!-- data-position: bottom-right (default), bottom-left, top-right or top-left -->
<!-- data-button-text: up to 40 characters -->
<!-- data-theme: light, dark or auto (follows the visitor's system) -->
<script
async
src="https://peeqback.com/widget.js"
data-feedback-widget="true"
data-workspace-key="YOUR_WORKSPACE_KEY"
data-position="bottom-left"
data-button-text="Ideas & bugs"
data-theme="auto"
></script>The rest are in your dashboard:
- Settings → Branding: your logo, your accent color (one of 8 presets) and an icon-only launcher.
- Settings → Widget: the theme, the headline above the form, the Ideas tab (Show an Ideas tab) and the Updates tab (Show a What's new tab), and whether new releases pop up.
- Pro plan: removes “Powered by Peeqback” from the widget.
The widget's text is in English. It goes full screen on phones.
Screenshots and privacy
A screenshot is taken only when someone clicks Screenshot. It captures the visible page without a permission prompt and leaves the widget out. Password fields and card fields with standard autofill labels (autocomplete="cc-…") are painted over. Mark anything else to hide:
<!-- Painted over in screenshots, along with password fields and card fields (autocomplete="cc-…") -->
<div data-peeqback-mask>Acct 4421-0093 · Balance $12,480</div>
<span class="peeqback-mask">jane@client.com</span>With each post the widget records the page address, browser, operating system, device type, screen size, language and time zone. It sets no cookies. It keeps a few items in local storage: an anonymous voter ID, the sign-in session, the posts this browser sent and which updates were seen. Visitor IP addresses are used for rate limiting and not stored with posts. Screenshots are visible to your team only, never on the public board.
It renders in a Shadow DOM, so your CSS and the widget's don't affect each other. Its font and code are served from peeqback.com, with no third-party scripts. Privacy policy
Troubleshooting
- The button doesn't appear. Check that the exact origin, including
wwwand the port, is in Allowed domains, and that your subscription is active. - Posts show “Not verified”. You passed a name or email without a token. Sign a token on your server as shown above.
- The Ideas or Updates tab is missing. Ideas needs a public board; Updates needs at least one published changelog post.
Still stuck? Email support@peeqback.com.