1.5.4 • Published 3 months ago

nuxt-posthog v1.5.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Nuxt PostHog

npm version npm downloads License Nuxt

PostHog module for Nuxt

Features

  • Nuxt 3 ready
  • Typescript support
  • Automatic configuration
  • Vue global directives for PostHog events

Quick Setup

  1. Add nuxt-posthog dependency to your project

    npx nuxi@latest module add nuxt-posthog
  2. Add nuxt-posthog to the modules section of nuxt.config.ts

    export 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
1.5.4

3 months ago

1.5.3

3 months ago

1.5.2

4 months ago

1.5.1

5 months ago

1.5.0

8 months ago

1.4.4

9 months ago

1.4.3

9 months ago

1.4.2

10 months ago

1.4.1

10 months ago

1.4.0

10 months ago

1.3.1

10 months ago

1.3.0

10 months ago

1.2.0

11 months ago

1.1.2

12 months ago

1.1.1

12 months ago