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 analyticsIf using the PostHog plugin:
pnpm add posthog-js