Integrations
Analytics

Posthog Integration

This integration allows you to send events to Posthog from your app and use Posthog's powerful analytics tools to analyze your data.

Setup

Go to your Posthog instance and create a new project. Then, go to the project's settings and copy the Project API key.

Then, go to your app's settings and add the following environment variables:

  • NEXT_PUBLIC_POSTHOG_KEY: The project API key you copied from Posthog.
  • NEXT_PUBLIC_POSTHOG_HOST: The host of your Posthog instance. Defaults to https://app.posthog.com.

After that, you can use the see events in your Posthog project dashboard.