posthog-performance-tuning
Installation
SKILL.md
PostHog Performance Tuning
Overview
Optimize PostHog event capture, feature flag evaluation, and analytics queries. Focus on client-side batching, local flag evaluation to eliminate network calls, event sampling for high-volume apps, and efficient HogQL queries.
Prerequisites
- PostHog project with API key
posthog-nodeSDK installed- Understanding of PostHog event model
- Feature flags configured (if applicable)
Instructions
Step 1: Configure Optimal Client Batching
import { PostHog } from 'posthog-node';