PostHog

Identifies Admin users and tracks sign-in flows in PostHog

Community 0 433/wk MIT v0.4.0

Installation

pnpm add @klnap/payload-posthog

About

This plugin connects the Payload Admin panel to PostHog, so editor activity shows up in your product analytics. Admin has its own sign-in and React tree that a standard PostHog install cannot see, so the plugin adds the missing user identification, pageviews and autocapture for Admin pages.

Sign-in, sign-out and account switching are recorded as events, and guest tracking can cover public login and password reset pages. Authenticated PostHog Support is available inside the Admin. Session replay, error tracking and feature flags work when your PostHog project turns them on.

Package info

Package name
@klnap/payload-posthog
Latest version
0.4.0
Unpacked size
174 kB
License
MIT
Weekly downloads
433
Last publish
Nov 28, 2026

More from klnap

View profile

Slug field that fills itself from another field, with optional Auto/Manual mode

Uses prefixed UUIDv7 TypeIDs as native Payload document IDs per collection

Creates redirect rules automatically when published URLs change

Event-driven Next.js cache invalidation triggered by Payload content changes

Stores Payload media in Sanity with on-demand image transforms and CDN delivery

Similar plugins

More in Analytics

Adds a GA4-backed analytics dashboard and event tracking to the Payload admin

Splits page traffic between variants you create in the Payload admin

Counts users by role and other fields, hiding groups too small to show

Creates and syncs Dub shortlinks for Payload documents as they are published

Sends Payload server errors and selected HTTP errors to Sentry with user context

Adds KPI figures, lists and charts to the Payload admin dashboard, read from your collections