Installation
@repo/analytics is a workspace package -- no install needed. Import directly:
import { CookieWall, trackPageView, posthogPlugin } from '@repo/analytics'
Peer dependencies
The analytics library must be available in your app:
pnpm add analytics
If using the PostHog plugin:
pnpm add posthog-js