integration-astro-ssr
OfficialSeamless PostHog analytics for Astro SSR apps.
AuthorPostHog
Version1.0.0
Installs0
System Documentation
What problem does it solve?
PostHog analytics integration for server-rendered Astro apps with API routes to enable both client-side and server-side tracking.
Core Features & Use Cases
- Client-side event tracking with the PostHog snippet in Astro components
- Server-side event capture via API routes and a PostHog server singleton
- User identification across frontend and backend to correlate sessions
- Reusable layout and components pattern for applying analytics across pages
Quick Start
Follow the workflow in the references to wire up PostHog in an Astro SSR project, including environment configuration and example API routes.
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-astro-ssr Download link: https://github.com/PostHog/skills/archive/main.zip#integration-astro-ssr 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.