Zapier
Contents
Objective
Sending events to PostHog using Zapier.
Why is this useful?
Zapier is an automation platform that connects thousands of apps together. With the PostHog Zapier integration, you can automatically send events to PostHog from any of the 8,000+ apps Zapier supports.
This is useful for:
- Tracking events from tools that don't have a native PostHog integration
- Syncing data from CRMs, payment processors, form builders, and more
- Creating automated workflows that capture important business events in PostHog
Note: This guide covers sending events to PostHog from Zapier. If you want to trigger Zaps based on PostHog events, see our Zapier destination documentation.
Prerequisites
To follow this tutorial, you should:
- Have a PostHog account (Cloud or self-hosted)
- Have a Zapier account
Step-by-step instructions
Setting up the PostHog app in Zapier
- Log in to your Zapier dashboard.
- Click Create > New Zap to start a new automation.
- Set up your trigger by choosing the app and event that will initiate the Zap (e.g., "New Form Submission" in Typeform, "New Customer" in Stripe).
- Configure the trigger according to your chosen app's requirements.
Adding PostHog as an action
- After setting up your trigger, click Add a step and search for PostHog.
- Select PostHog from the list of apps.
- Choose Capture Event as the action event.
- Click Continue.

Connecting your PostHog account
- Click Sign in to PostHog.
- Create a PostHog Personal API key inside PostHog and add it under "Personal API Key".
- You'll need some specific permissions to make this work, the link above already enables them by default.
- If you're using PostHog Cloud EU or a self-hosted instance you'll need to configure
API Hostappropriately:- PostHog Cloud US:
https://us.posthog.com - PostHog Cloud EU:
https://eu.posthog.com - Self-hosted: Your PostHog instance URL
- PostHog Cloud US:
- Click Yes, Continue to PostHog to connect your account.
Configuring the Capture Event action
- Organization (required): What organization we should create the event on.
- Project (required): What project we should create the event on.
- Event Name (required): Enter the name of the event you want to track (e.g.,
form_submitted,payment_completed). - User PostHog Distinct ID (required): Enter a unique identifier for the user. You can map this from your trigger data (e.g., email address, user ID). This ID should uniquely identify a specific user - you'll be able to see all events from a single user inside PostHog.
- Do NOT use a hardcoded ID for all your events here. If these events don't belong to a user generate a random UUID.
- Properties (optional): Add any additional properties you want to include with the event. You can map data from your trigger to create rich event properties.

Testing and enabling your Zap
- Click Test step to send a test event to PostHog.
- Verify the event appears in your PostHog Activity tab.
- Once confirmed, click Publish to enable your Zap.
Available actions
The PostHog Zapier integration supports the following action:
| Action | Description |
|---|---|
| Capture Event | Send a custom event to PostHog with a distinct ID, event name, and optional properties |
FAQ
Where can I find out more?
Check PostHog's API documentation for more information on events and properties. The PostHog Zapier integration is open source on GitHub.
Who maintains this integration?
This integration is maintained by PostHog. If you have issues with the integration not functioning as intended, please let us know!
What if I have feedback on this integration?
We love feature requests and feedback! Please tell us what you think!
Can I use this with a self-hosted PostHog instance?
Yes! When connecting your PostHog account in Zapier, simply enter your self-hosted instance URL instead of the Cloud URL.
What's the difference between this and the PostHog Zapier destination?
- This integration (Zapier app): Sends events to PostHog from other apps via Zapier
- Zapier destination: Sends events from PostHog to trigger Zaps when actions occur
What if my question isn't answered above?
We love answering questions. Ask us anything via our community forum, or drop us a message.