# PostHog

> Notes on using PostHog with the analytics abstraction in this codebase.

*Canonical: https://makerkit.dev/docs/nextjs-prisma/analytics/posthog-analytics-provider*

---

This repo does not ship a first-party PostHog analytics provider, PostHog package, or plugin installer.

If you want PostHog, treat it as a custom analytics integration:

1. Implement `AnalyticsService`
2. Register the provider with `createAnalyticsManager()`
3. Wire any client or server SDK initialization inside your provider

Relevant code:

- `packages/analytics/src/types.ts`
- `packages/analytics/src/analytics-manager.ts`
- `packages/analytics/src/index.ts`
- `packages/analytics/src/server.ts`
- `apps/web/components/analytics-provider.tsx`

This is intentionally provider-agnostic. The shipped default remains the null provider until you add your own implementation.

For the actual extension pattern, see [Custom Analytics Provider](./custom-analytics-provider).
