Gather qualitative feedback from users on your new or existing features.
- Make sure you have enabled
opt_in_site_apps: true
in your posthog-js config. - Install this app from PostHog's app repository.
- Enable and configure the app for your site.
If you wish to develop on this locally, clone the repo and run the following:
npx @posthog/app-dev-server
or
pnpm install
pnpm start
Then browse to http://localhost:3040/, open site.ts
in an editor, and hack away.
The following events can be used to trigger actions when a survey is shown/completed/dismissed. This can be useful if the survey overlaps with another widget.
window.addEventListener('PHSurveyShown', function (e) {
..
});
window.addEventListener('PHSurveyClosed', function (e) {
..
});