
PostHog Zapier Integration
https://github.com/posthog/posthog-zapier- Category
- Productivity
- Rank
- No. 1716Tools index
- Pricing
- Open Source
- Type
- TOOL
- Builder
- posthog
- GitHub
- 4 stars
- Date
About
Official PostHog Zapier integration. Trigger Zaps from PostHog events and connect analytics data to thousands of apps.
What it does
This adapter creates a two-way automation bridge. A completed PostHog action can start a workflow with its event payload, while another workflow step can record a named event, user identity, properties, and optional timestamp in PostHog.
Why it's ranked here
A strong choice for focused PostHog automation because it supports both outbound action notifications and inbound event capture. Webhook subscriptions avoid polling for the main trigger, while dynamic organization, project, and action selectors reduce manual identifier entry.
What's good
Authentication validates personal access tokens and accepts US, EU, or custom hosts. Event properties receive useful type handling: valid JSON values become numbers, booleans, objects, or arrays, while invalid JSON remains text. Event capture automatically retrieves the selected project's token and marks Zapier as the source library.
Tradeoffs
The public surface is narrow: one visible trigger and one creation action. Action triggering requires a PostHog action to exist first. The annotation trigger is disabled, while organization, project, and action-definition triggers are hidden helpers. Automated tests shown here cover URL composition only, not authentication, webhooks, or event capture.
How to use it well
Use it when business workflows should react to a defined product behavior, or when another system must record a PostHog event without custom integration code. Configure the correct host and a fresh personal key. Look elsewhere for broad analytics querying, report export, annotation automation, or general project administration.
Technical notes+
src/index.ts registers custom authentication, a bearer-token beforeRequest hook, five triggers, and one create operation against zapier-platform-core 12.0.3. src/utils.ts builds host-aware HTTPS URLs and creates or deletes project hooks. src/triggers/action_performed.ts subscribes to action_performed; its fallback queries up to three recent matching events from the prior 30 days and reshapes rows into webhook-like payloads. src/creates/capture_event.ts fetches the project api_token, parses property values as JSON when possible, then posts to /capture. Its InputData names do not match every field read by perform, weakening type accuracy. src/test/utils.test.ts tests URL handling, including spaces, query strings, protocols, numeric segments, and bundle-provided hosts.
Observed
- License
- MIT
- Primary language
- TypeScript, with small JavaScript entry and post-push scripts
- Packaging
- Private npm package built with TypeScript and loaded through a CommonJS entry point
- Interface
- Zapier platform integration with webhook triggers and an event creation action
- Authentication
- Custom personal API key authentication sent as a bearer token
- Host support
- PostHog Cloud US, PostHog Cloud EU, and configurable public self-hosted hobby deployment hosts
- Testing
- Jest test suite shown for URL composition behavior
Read from README.md, package.json, index.js, src/index.ts, src/types.ts, src/utils.ts, src/authentication.ts, src/creates/capture_event.ts, src/triggers/action_defined.ts, src/triggers/project_created.ts, src/triggers/action_performed.ts, src/triggers/annotation_created.ts, src/triggers/organization_created.ts, postpush.js, src/test/utils.test.ts.
What it can do
Trigger automated workflows from PostHog events
PostHog event data → Zapier workflow execution
Connect PostHog analytics to external applications
PostHog analytics data and target app configuration → Data synchronization to connected app
Send user behavior data to marketing tools
PostHog user events and segments → Marketing automation triggers
Create CRM records from product analytics
PostHog user activity and conversion events → CRM contact or lead entries
Push analytics insights to notification channels
PostHog metrics and alert conditions → Slack/email/SMS notifications
Sync user cohorts to advertising platforms
PostHog user segments and cohort data → Custom audiences in ad platforms
Tags
Tech Stack
Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.