PostHog

For teams using PostHog as their product analytics tool. You'll have funnel events, answer breadcrumbs, and session recordings in your PostHog project. You need a PostHog project and its API key.

What this integration does#

Zellify loads the PostHog SDK on funnel pages. It captures funnel events with a z: prefix, identifies visitors by email (set as the PostHog distinct id), and records sessions. A dedicated z:revenue event fires on purchase with product metadata.

Connect PostHog#

  1. Open Dashboard → Settings → Integrations.
  2. Locate PostHog.
  3. Toggle it on.
  4. Paste the project API key and pick the region (US or EU).
  5. Save.

Where to find your project API key#

In PostHog, open Project Settings and copy the project API key.

Credentials verified: Zellify runs a live test event on save. Confirm it lands in PostHog's Activity view.

Events sent#

EventTriggerKey properties
z:page_completedUser completes a funnel pageAll answers from that page, attached as event and person properties
z:email_capturedEmail is collectedFull answers (including metadata) on the answers property
z:checkout_presentedCheckout or payment form is shownCheckout context
z:payment_method_addedUser enters their payment methodCheckout context
z:payment_succeededPayment completesAlso fires z:revenue
z:payment_failedPayment failsFailure reason
z:trial_startedFree trial beginsSubscription context
z:subscription_startedPaid subscription beginsSubscription context
z:revenueAfter a successful paymentSee properties below

See Event reference for the canonical taxonomy.

Funnel answers#

Each answer pushes a property keyed by the question id onto the event and the person. A multiselect pushes an array. On z:email_captured, the full answer set (with metadata) is also attached as the answers property.

User identification#

When z:email_captured fires, Zellify sets the user's email as the PostHog distinct id. Subsequent events attach to that person.

Revenue events#

z:payment_succeeded also emits z:revenue with these properties:

PropertyTypeExample
revenuenumber9.99
currencystringUSD
product_idstringprod_123
price_idstringprice_123
quantitynumber1
revenue_typestringsubscription
payment_typestringrecurring
product_namestringPro plan
categorystringsubscription

Automatic tracking#

PostHog autocapture is enabled by default (clicks, inputs, page views), alongside session recording, web vitals, and page-view tracking — all controlled by your PostHog project settings. If you already initialise PostHog elsewhere on your site, disable autocapture on that init to avoid double-counting.

Session replay#

Enabled by default. Input masking is on; passwords and inputs never reach the recording. Configure sample rate in your PostHog project settings.

Region#

Pick US or EU at connect time. Zellify routes to the matching PostHog endpoint.

Test and verify#

  1. Open a test funnel.
  2. Advance through a question, the paywall, and a test payment.
  3. Confirm events in PostHog → Activity.
  4. Confirm the session recording in PostHog → Session replay.

Troubleshooting#

SymptomLikely causeFix
SDK loading twiceManual PostHog init on your domain plus the Zellify toggleRemove the manual init on funnel pages
Session replay missingReplay disabled in PostHog projectEnable in PostHog → Project Settings → Recordings
Wrong region dataRegion mismatchRe-save the integration with the correct region
Event reference
Canonical funnel event taxonomy.
Amplitude
Alternative analytics tool.