# Feedinbox integration guide Feedinbox is two features delivered by one embeddable script (widget.js): 1. Feedback widget: a floating button that opens a feedback form. 2. Why-Not-Buy: a one-question exit-intent card that appears when a visitor abandons a high-intent surface (pricing page, pricing modal, checkout) without buying. It asks "What stopped you?" and records the reason. Both features are controlled by the project's dashboard settings. The same script is used in every case. The only site code beyond the script is the event calls, which are required only for Why-Not-Buy. Docs page (human version): https://feedinbox.com/docs ## Step 1: Add the script (required for both features) Paste this before the closing tag. Replace YOUR_PROJECT_KEY with the project key found in Dashboard > Project > Settings > Project Key. The first line is a queue stub (same pattern as gtag.js). It ensures events fired before widget.js finishes loading are not lost. Always include it. ### Next.js (App Router), in app/layout.tsx import Script from 'next/script' export default function RootLayout({ children }) { return ( {children}