Skip to content

Install the widget

The widget adds a Feedback button to your app. Your users can post ideas, vote, and see your roadmap and what’s new.

It takes about five minutes.

In the dashboard, go to Widgets. The Feedback widget tab shows a live preview.

The Widgets page in the FeedbackOtter dashboard, with a preview of the Feedback widget.
  • Who can vote and post: your signed-in users, or nobody (read-only).
  • Board: where new ideas go.
  • Position and Theme.
  • Open it with: our floating button, or your own.
  • Button text: “Feedback” by default.

Click Save changes.

The Feedback widget settings: who can vote and post, board, position, theme, button and button text.

Click Copy next to Embed code. Paste it before </body> on every page that should show the widget.

The embed code, with a Copy button.

The code includes your public key. It isn’t a secret. It only tells the widget which product to show.

If you chose Nobody: read-only, you’re done. Skip to step 5.

Your server signs a short token for each logged-in user. Votes and ideas then come from real customers.

The Sign in your users steps: sign a token on your server, try a test token, open your app.
  1. Get your secret from Settings → Single sign-on.
  2. Sign a token with it on your server.
  3. Put the token in the embed code as token.
// Node, with the jsonwebtoken package
import jwt from "jsonwebtoken";
const token = jwt.sign(
{ sub: user.id, name: user.name, email: user.email },
process.env.FEEDBACKOTTER_SSO_SECRET,
{ algorithm: "HS256", expiresIn: "1h" },
);

sub and name are required. email is optional. Tokens can last up to 24 hours.

The dashboard has the same example for Rails, Django and Laravel. For more languages, every claim and troubleshooting, see Single sign-on.

Click Generate a test token, then Copy token. Paste it as token on a test page.

Test token buttons: Make a new test token, Copy token, Open your board as Test user.

It signs you in as “Test user” for one hour. Don’t ship it.

Open a page with the code. The Feedback button appears.

An app with the Feedback button in the bottom-right corner.

Click it. Signed-in users see + Share an idea.

The widget open in the app, on the Ideas tab, with a Share an idea button.

The dashboard ticks the last step once the widget loads.

Step 3 ticked: Widget detected.
  • No button? Check the code is on the page, before </body>.
  • Can’t vote or post? The token is missing, expired or signed with the wrong secret. The widget stays read-only and logs why in the browser console.

Set Open it with to Your own button. Then call this from your button:

FeedbackOtter.open();

Every call and option is in the Widget JavaScript reference.