posthog-prod-checklist

Featured

Production readiness checklist for PostHog integrations: SDK configuration, graceful degradation, health checks, shutdown hooks, and rollback procedures. Trigger: "posthog production", "deploy posthog", "posthog go-live", "posthog launch checklist", "posthog production ready".

AI & Automation 2,940 stars 439 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# PostHog Production Checklist ## Overview Production readiness verification for PostHog integrations. Covers SDK configuration hardening, graceful degradation when PostHog is unavailable, health check endpoints, proper shutdown hooks for serverless, and rollback procedures. ## Prerequisites - PostHog integration tested in staging - Production PostHog project with `phc_` key - Personal API key (`phx_`) for server-side features - Deployment pipeline configured ## Instructions ### Pre-Deployment Checklist **SDK Configuration:** - [ ] `api_host` set to correct region (`us.i.posthog.com` or `eu.i.posthog.com`) - [ ] `capture_pageview: false` if using SPA with manual pageview tracking - [ ] `capture_pageleave: true` for session duration accuracy - [ ] Reverse proxy configured to bypass ad blockers (see `posthog-sdk-patterns`) - [ ] `posthog.debug()` disabled in production (guarded by `NODE_ENV`) - [ ] `autocapture` configured to exclude noisy elements **Server-Side:** - [ ] `posthog.shutdown()` called in SIGTERM handler and serverless function cleanup - [ ] `personalApiKey` set for local flag evaluation (not just project key) - [ ] `flushAt` and `flushInterval` tuned (default 20/10s is fine for most apps) **Security:** - [ ] Personal API key (`phx_`) never in client bundles or NEXT_PUBLIC_ vars - [ ] `.env` files in `.gitignore` - [ ] Separate PostHog project per environment ### Step 1: Production SDK Configuration ```typescript // lib/posthog-production.ts import { Pos...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category