integration-sveltekit
OfficialSeamless PostHog integration for SvelteKit apps
AuthorPostHog
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This integration enables PostHog analytics within SvelteKit projects, providing seamless observability and consistent event tracking across client and server sides.
Core Features & Use Cases
- Client-side PostHog initialization and user identification in SvelteKit components.
- Server-side event capture using PostHog Node SDK with proper shutdown handling and error tracking.
- SSR-friendly configuration and guidance for session replay with relative asset paths in SvelteKit.
Quick Start
Install the required PostHog libraries, configure environment variables, and initialize PostHog in both client and server contexts following the example.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: integration-sveltekit Download link: https://github.com/PostHog/skills/archive/main.zip#integration-sveltekit Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.