Install the embed
Which of the three install paths fits your page, with the one-line version of each before the page that covers it in full.
Pick the path by what your page can run.
| Your page | Use | Page |
|---|---|---|
| Hand-written HTML, a static site, a CMS template | The script tag, with data-* attributes for options | Plain HTML |
| A React or Next.js application | The script tag with data-render-on-load="false" and the JavaScript API, or the element in your JSX | Next.js and React |
| No scripts allowed, frames only | A plain iframe of the survey page | Plain iframe |
Every path shows the same conversation from https://ask.betterfeedback.ai/s/{surveyId}. The
script and the element add theming, events, inline sizing and the respondent hand-off; the
plain iframe has none of those.
The survey id is the last segment of the survey's /s/ link.
Overview
What the BetterFeedback embed is, the three ways to put a survey conversation on your own page, what can be configured from where, and the pages in this section that cover each part.
Plain HTML
Put the BetterFeedback embed on a static site or any hand-written HTML page with one script tag, inline in place of a form or floating in a corner, and what to allow in your Content-Security-Policy.