All setup paths

Add a “Was this page helpful?” documentation feedback widget

Put a yes/no feedback widget inline at the bottom of your docs articles. Reuse one survey ID across every page—tinyDialog captures the page URL automatically so you know which guide needs an update.

Try a working “Was this page helpful?” widget

Below is an inline yes/no widget placed at the end of tinyDialog’s own HTML and JavaScript installation guide. Switch between real tinyDialog docs pages, vote Yes or No, and inspect how the same survey ID captures each article’s URL and metadata.

Switch TinyDialog documentation pagePreview docs page:
docs.tinydialog.com/installation/html-javascript
Open real docs page

tinyDialog Docs · installation

Install tinyDialog on a website with HTML

Add the tinyDialog module script before </body> and place a container with data-tinydialog-widgetcontainer where the survey should appear.

<div
  data-tinydialog-widgetcontainer="YOUR_SURVEY_ID"
></div>
<script
  type="module"
  src="https://cdn.jsdelivr.net/npm/@tinydialog/sdk-js@latest/dist/browser.js"
></script>

Was this page helpful?

Your vote includes this page’s URL automatically.

Was this documentation page helpful?
Powered by tinyDialog · Interactive demo

Embed a documentation feedback widget in 3 steps

  1. In the tinyDialog dashboard, click Create Survey and choose Select an Option. Set the Question to Was this page helpful?, add Yes and No as options, and check Display Options as Button Row under Customization.
  2. Open Setup & Connections and copy your survey ID. Paste the container into your shared documentation article footer and load the script once before </body>.
  3. Open a published docs article, click Yes or No, submit, and confirm the vote and page URL appear in the survey’s Responses tab.
<section aria-label="Page feedback">
  <div
    data-tinydialog-widgetcontainer="YOUR_SURVEY_ID"
  ></div>
</section>

<script
  type="module"
  src="https://cdn.jsdelivr.net/npm/@tinydialog/sdk-js@latest/dist/browser.js"
></script>

Prefer a floating button or a custom trigger link next to “Edit this page”? Follow the HTML and JavaScript installation guide or the website feedback widget setup.

Optional: 1-click Yes/No buttons with a follow-up comment on “No”

If you want custom buttons styled to match your docs theme—and only ask “What was missing?” when a reader clicks No—submit the vote with submitFeedback() and open a second Text Input survey via showWidget() from @tinydialog/sdk-js.

import {
  showWidget,
  submitFeedback,
} from '@tinydialog/sdk-js';

async function onHelpfulVote(vote: 'Yes' | 'No') {
  const meta = {
    article: 'installation/html-javascript',
    section: 'installation',
  };

  await submitFeedback('YES_NO_SURVEY_ID', vote, {
    extraData: meta,
  });

  if (vote === 'No') {
    showWidget('TEXT_FOLLOW_UP_SURVEY_ID', {
      extraData: {...meta, helpful: 'No'},
    });
  }
}

Identify the article in every response

You don’t need a separate survey for every docs page. Reuse one survey ID across your entire documentation site and identify the article at two levels:

1. Automatic page URL capture (zero extra code)
Every inline widget loaded by the tinyDialog script automatically passes window.location.href to the survey. Each submission appears with a URL badge in the dashboard and as respondent.url in CSV exports, webhooks, and the Responses API.
2. Client-side navigation in React and Vue docs sites
On single-page docs frameworks (Docusaurus, Fumadocs, Nextra, VitePress), remount the container when the route changes—for example <div key={pathname} data-tinydialog-widgetcontainer="YOUR_SURVEY_ID" />—so each article initializes with its own URL.
3. Structured article metadata with extraData
When your docs span multiple versions, locales, or product areas, call loadSurvey() from the JavaScript SDK and pass custom key-value pairs in extraData. Each key renders as its own metadata badge next to the URL.
import {loadSurvey} from '@tinydialog/sdk-js';

const el = document.getElementById('docs-feedback');
if (el) {
  loadSurvey(
    'YOUR_SURVEY_ID',
    {
      extraData: {
        article: 'installation/html-javascript',
        section: 'installation',
        docsVersion: 'v1',
      },
    },
    el,
  );
}

Review results and find pages that need updates

Collecting “Was this page helpful?” votes only pays off when your team can spot struggling articles quickly and close the loop.

Triage in the tinyDialog dashboard

Track response volume over the last 24 hours, 7 days, and 30 days, and scan each Yes or No alongside its URL, custom extraData tags, browser, OS, and viewport size. On Pro, run AI topic detection on text follow-ups to cluster recurring gaps.

Calculate helpfulness rates in CSV

Use Export Responses as CSV-File to group votes by URL or section in Google Sheets or Excel. Sort by highest “No” count first—a high-traffic quickstart with 20 negative votes beats an edge-case reference page with one.

Alert your docs team automatically

Add a connector in Setup & Connections to forward votes to Slack, Discord, Airtable, n8n, or a generic webhook—or turn on Weekly, Daily, or Real-Time email summaries.

Query JSON or subscribe via RSS

Automate docs health reports with the authenticated Responses API (GET /api/v1/responses?surveyId=YOUR_SURVEY_ID) in JSON or RSS (format=rss) without scraping or manual exports.

Remember that voluntary votes skew toward readers who hit a snag. Pair negative ratings with page traffic and search queries—our website feedback collection guide covers how to combine widget responses with analytics and user interviews.

Works across static docs and modern frameworks

Because tinyDialog runs from a single HTML attribute or lightweight JavaScript SDK, you can use the same documentation feedback widget without framework lock-in:

What you can do with tinyDialog

Data connectors

Forward new responses to Slack or Discord. Use a webhook to send feedback to an Airtable, Zapier, or n8n workflow.

Dashboard topic filters for feedback about product quality, customer support, and shipping

AI topic detection

On Pro, group feedback by topic and filter responses in the dashboard to see what visitors bring up repeatedly.

Spam protection

Enable Cloudflare Turnstile on your widget to help filter automated submissions.

TinyDialog feedback widget with a German prompt and submit buttonTinyDialog feedback widget with a Spanish prompt and submit button

Widget localisation

Write the question, button label, and other widget text in your audience’s language.

Frequently asked questions

Do I need a separate survey for every documentation page?
No. Reuse one survey ID in your shared docs layout template. tinyDialog automatically attaches window.location.href as the response URL, and you can add structured article, section, or version metadata with the JavaScript SDK.
Can I ask a follow-up question when a reader clicks “No”?
Yes. You can either embed a Text Input survey directly under the article, or wire custom Yes/No buttons to submitFeedback() and call showWidget() to open a text follow-up survey only when someone votes “No.”
Does the “Was this page helpful?” widget work with Docusaurus, Fumadocs, VitePress, or Nextra?
Yes. The browser script listens for client-side navigation, and in React or Vue docs frameworks you can key the container by the current pathname or call loadSurvey() on route change so every page records its own URL.
Will a documentation feedback widget slow down our docs pages?
No. The script loads asynchronously as a non-blocking ES module and renders the form inside an isolated iframe, so it does not block initial rendering or clash with your documentation CSS.
How do we stop bots from spamming page-helpfulness votes?
Turn on Cloudflare Turnstile in your survey customization settings alongside built-in rate limits. Note that Turnstile applies to embedded widgets; programmatic submitFeedback() calls require captcha to be disabled on that survey.
How can our team review results without checking another dashboard every day?
Forward new responses to Slack, Discord, Airtable, n8n, or any webhook endpoint under Setup & Connections, enable email summaries, export CSV files for spreadsheet pivots, or pull JSON and RSS feeds from the Responses API.

Create your first survey

Start free with 25 responses per month.

Start free