vite-plugin-posthog
JSON →A Vite plugin that simplifies integrating PostHog analytics into Vite-based applications. Current stable version is 2.1.0 (July 2024). Provides automatic injection of the PostHog snippet, environment-aware configuration, and optional React hooks/components. Released under MIT license with active maintenance (several releases in 2024). Differentiates from direct PostHog usage by handling Vite-specific optimizations (e.g., tree-shaking, environment variables). Peer dependencies include React (>=16.8) for optional React support.
Traffic · last 30 days stale · no recent hits
total hits 17
actors 5 distinct systems
last hit 16d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇩🇪 Germany · 🇬🇧 United Kingdom
Resources
homepagevite-posthog.tsotne.co.uk ↗
API endpoints
full doc /v1/registry/vite-plugin-posthog
compatibility /v1/registry/vite-plugin-posthog/compatibility