- 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 make this a juicier example app, then 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.