Feedback Widget

Last updated:

This app enables you to gather feedback from your users and ingest it as an event into PostHog. The app accomplishes this by injecting code into your website, such that a small widget appears to prompt users to share feedback.

Sending feedback looks like this...

Feedback widget

You can see the feedback in PostHog as a custom event called Feedback Sent with the feedback in the $feedback property or through the Feedback Widget app's page.

Feedback widget

You can also use Zapier to send feedback to other tools like Slack, Zendesk, and more.

Feedback widget

Requirements

First, you need to opt in to the site apps beta. You'll need to be on PostHog cloud or if self-hosting using PostHog 1.41.0 or later.

You can opt in to the beta by configuring your posthog-js initialization to include opt_in_site_apps: true. Please be aware you do this at your own risk.

Self-hosted and not running 1.41.0? Find out how to update your self-hosted PostHog deployment!

Install

  1. Opt into the site apps beta by setting your posthog-js initialization to include opt_in_site_apps: true.
  2. Visit the 'Apps' page in your instance of PostHog.
  3. Search for 'Feedback Widget' and select the app, press Install.
  4. Customise the text, and enable the plugin
  5. Either select "Show feedback button on the page" or add a button with a corresponding data attribute e.g. data-attr='posthog-feedback-button' which when clicked will open the feedback widget
  6. Each feedback from your users is now captured as a custom Feedback Sent event with the feedback in the $feedback property
  7. You can now use this event to trigger PostHog actions, or create a funnel to see how many users are giving feedback

How can I connect the feedback to Slack?

  1. Install the Feedback Widget app as described above
  2. Create an action called Feedback Sent Action that matches the custom event Feedback Sent.
  3. Check the box "Post to webhook when this action is triggered" with the following message: [person] sent feedback on [event.properties.$current_url]: [event.properties.$feedback]
    • Webhook config
  4. Create the slack app
  5. Copy the Webhook URL into the PostHog Setup page

FAQ

Can I make my own apps?

You certainly can. Check our tutorial about how to build a site app in PostHog to get started.

Is the source code for this app available?

PostHog is open-source and so are all apps on the platform. The source code for the Feedback Widget is available on GitHub.

Who created this app?

We'd like to thank PostHog team members Luke Harries, Marius Andra, and user Ankit Ghosh. Thanks, all!

Who maintains this app?

This app is maintained by PostHog. If you have issues with the app not functioning as intended, please let us know!

What if I have feedback on this app?

We love feature requests and feedback! Please tell us what you think! to tell us what you think.

Or, if you see the feedback widget enabled, use that!

What if my question isn't answered above?

We love answering questions. Ask us anything via our community forum, or drop us a message.

Questions?

Was this page useful?

Next article

Notification Bar

The Notification Bar app is a site app which enables you to display a customised banner on your site to notify users about events such as product releases, sales, and events. Site apps are a new, big, and currently beta feature which enable you to inject code from PostHog into your website via posthog-js . Requirements The Notification Bar requires either PostHog Cloud, or a self-hosted PostHog instance running version 1.41.0 or later. Not running 1.41.0? Find out how to update your self…

Read next article