Collect user feedback with a website feedback widget

Your visitors have nothing to install. They open the widget from your page, pin comments to what they are looking at and press Send to site owner. You read the result in your admin area, next to a copy of the page they saw.

Try it here

This page runs the widget. Both controls below are the snippets from step 2, unchanged: open it with either one, click anything on the page to pin a comment, then press Send to site owner.

Leave feedback
This is a real send. Your comments go to our team, along with a copy of this page, so please don't write anything personal.

Step 1. Add the script

Put this tag on every page where you want feedback, before </body>:

<script type="module" src="https://website-feedback-tool.com/wft/embed.js"></script>

On its own it draws nothing: no button, no pins, no change to your layout. The widget appears only when something on the page asks for it, which is the next step.

Step 2. Give visitors a way to open it

<a href="#wft">Leave feedback</a>

The script opens the widget whenever the address ends in #wft, so this needs no JavaScript of your own and suits a footer. It also means you can send someone straight to https://your-site.example/pricing#wft. If a router on your site reads the hash, it sees #wft too, and with a <base href> on the page the link leads to that address instead of staying here. Use the button in either case.

Option B: a button

<button type="button" onclick="WFT.open()">Leave feedback</button>

WFT.open() opens the widget from anything your code does: a button, a menu item, a condition of your own. WFT.close() hides it, and whatever the visitor had drafted is still there at the next opening.

Both are ordinary elements. Change the wording, move them and style them as you like; the widget cares only about the hash or the call.

Step 3. Publish wft.json and open the admin area

Everything sent through the widget is stored as visible to the site owner, but it is listed for nobody until you prove the site is yours. Without this step the admin area will not let you in to your site.

  1. Publish a /wft.json file on your domain that lists your team's Google accounts.
  2. Open /admin, sign in with Google and type your domain.

The site admin docs describe the file and the options for not publishing your colleagues' addresses. Each review opens at its own link, where your team can reply to a comment and mark it resolved. The widget shows the visitor no link to it, so a reply stays on the review and does not reach them.

Before you add it