payload-posthog

A full-featured, fully customizable PostHog integration for Payload CMS. Every feature is independently toggleable, and every automatic behavior has an override.

Capture

Auto-capture collection create/update/delete via hooks.

Identify

Maps Payload auth logins to PostHog identify().

Feature flags

Server helpers plus an admin dashboard widget.

Error tracking

Wired into Payload's global afterError hook.

Client (admin panel)

posthog-js in the admin panel — replay, surveys, toolbar.

Reverse proxy

Route ingestion through your own domain.

Webhooks

Signature-verified inbound endpoint, your own handler.

Groups

$groups tagging plus explicit group-property updates.