PostHog

Litestore sends a copy of each store event to PostHog from your server and can pull stats back into the admin.

PostHog

Cookie preferences
AnalyticsMarketing
  • BrowserNEXT_PUBLIC_POSTHOG_API_KEY
    Loads PostHog after consent
  • Your serverPOSTHOG_API_KEY
    Capture API, purchases included
  • Stats in the adminPOSTHOG_PROJECT_ID
    Pulls stats into the admin
  • The store's server sends events to PostHog through its capture API.
  • The payment webhook sends purchase events, and PostHog receives orders that a browser never reports.
  • A failing PostHog never causes an error in your store.
  • Litestore doesn't build a session funnel from PostHog yet.

Related integrations

Connect PostHog to your store

The guide explains every value you set and what Litestore does with it.