A
Analytics posthog
Posthog analytics provider for Medusa
@medusajs/analytics-posthog
Documentation | Website
Building blocks for digital commerce
PostHog Analytics Module Provider for Medusa: sends events and identities tracked through the Analytics Module to PostHog. Use it to track commerce events (such as orders placed or carts updated) in PostHog from your workflows and subscribers. It ships with and is registered through the path.
At a glance
| Package | |
| Type | Module Provider (Analytics Module) |
| Provider ID | |
| Registered by default | No |
| Import from |
Installation
No installation needed. The provider is a dependency of .
Usage
Register the provider in the Analytics Module's array in . The Analytics Module accepts exactly one provider.
Configuration
| Option | Type | Description | Default |
|---|---|---|---|
| Required. The PostHog project API key used to send events. | - | ||
| The PostHog instance URL. |
| Environment variable | Description |
|---|---|
| Value for , as used in the example above. | |
| Value for , as used in the example above. |

