nuxt-posthog
Nuxt PostHog
Features
- Nuxt 3 ready
- Typescript support
- Automatic configuration
- Vue global directives for PostHog events
Quick Setup
-
Add
nuxt-posthogdependency to your projectnpx nuxi@latest module add nuxt-posthog -
Add
nuxt-posthogto themodulessection ofnuxt.config.tsexport default defineNuxtConfig({ modules: ['nuxt-posthog'], });
That's it! You can now use PostHog in your Nuxt app ✨
Development
# Install dependencies
pnpm install
# Generate type stubs
pnpm run dev:prepare
# Develop with the playground
pnpm run dev
# Build the playground
pnpm run dev:build
# Run ESLint
pnpm run lint
# Run Vitest
pnpm run test
pnpm run test:watch
# Release new version
pnpm run release
Version History
| Version | Released | License |
|---|---|---|
| 1.6.3 | MIT | |
| 1.6.2 | MIT | |
| 1.6.1 | MIT | |
| 1.6.0 | MIT | |
| 1.5.4 | MIT | |
| 1.5.3 | MIT | |
| 1.5.2 | MIT | |
| 1.5.1 | MIT | |
| 1.5.0 | MIT | |
| 1.4.4 | MIT | |
| 1.4.3 | MIT | |
| 1.4.2 | MIT | |
| 1.4.1 | MIT | |
| 1.4.0 | MIT | |
| 1.3.1 | MIT | |
| 1.3.0 | MIT | |
| 1.2.0 | MIT | |
| 1.1.2 | MIT | |
| 1.1.1 | MIT |