posthog-hello-world
Installation
SKILL.md
PostHog Hello World
Overview
Minimal working examples demonstrating the three core PostHog operations: capturing events, identifying users, and evaluating feature flags. Covers both browser (posthog-js) and server (posthog-node) SDKs.
Prerequisites
- Completed
posthog-install-authsetup - Project API key (
phc_...) configured posthog-jsand/orposthog-nodeinstalled
Instructions
Step 1: Capture Your First Event (Node.js)
// hello-posthog.ts
import { PostHog } from 'posthog-node';