PostHog
Analytics Partner
Overview
PostHog offers a comprehensive suite of product analytics tools, including funnels, heat maps, session recording, and more, all in a single platform. It enables product and growth teams to track user behavior, measure feature adoption, and optimize product experiences.
With the CleverTap and PostHog integration, you can:
- Send Events from CleverTap to your PostHog dashboard for detailed product analytics.
- Send User Profiles from CleverTap to PostHog to enrich analytics with behavioral and attribute data.
This integration combines CleverTapโs engagement intelligence with PostHogโs behavioral analytics, giving you a holistic view of the user journey.
Prerequisites for Integration
Before setting up this integration, ensure you have:
- A valid PostHog project API key.
- A CleverTap account with Webhook Campaigns enabled.
Integrating PostHog with CleverTap
You can integrate PostHog with CleverTap in the following two ways:
PostHog Webhooks
Use CleverTap's Webhook Campaigns to forward user events to PostHog when users perform actions on your app or website.
To set this up, you'll need to configure a webhook on CleverTap using the
POST
HTTP method. This webhook must be configured by the CleverTap team.
- Contact CleverTap Support to enable this webhook for PostHog integration.
Send Events from CleverTap to PostHog
Events tracked in CleverTap, such as purchases, logins, or custom actions, can be sent to PostHog using Webhook Campaigns so that you can measure funnels, analyze drop-offs, and understand user behavior patterns. To do so, perform the following steps:
- Go to the Campaigns page, click + Campaign, and select Webhook from the list of messaging channels.
- Configure campaign details as required and proceed to the What section.
- In the Webhook Content section, select Content Format as
JSON
and select Custom Body. - Add the payload for the event you want to upload (example for a purchase event):
{
"event": "Purchase",
"api_key": "<ph_project_api_key>",
"distinct_id": "{{ Profile.Email | default: "[email protected]" }}",
"properties": {
"item_names": "{{ Profile.MyStuff | default: "Shampoo" }}",
"value": "{{ Profile.wallet_balance | default: "100" }}"
}
}
Use {{ }}
or the personalization button in CleverTap to dynamically insert profile properties. For details on accepted parameters, refer to the PostHog API documentation.

Webhook Content
-
Click Preview & Test to verify that the event data is being sent.
Preview & Test
-
Once configured correctly, you can see the events reflected in the PostHog dashboard.

PostHog dashboard
Send Users from CleverTap to PostHog
User profile data, such as email, location, or preferences, can also be sent from CleverTap to PostHog, allowing you to combine profile attributes with behavioral events for deeper analytics. This is done through the PostHog Identify API using a Webhook Campaign. To do so, perform the following steps:
- Go to the Campaigns page, click + Campaign, and select Webhook.
- Configure campaign details as required and proceed to the What section.
- In the Webhook Content section, select Content Format as
JSON
and select Custom Body. - Add the following Identify API Payload:
{
"api_key": "<project_API_key>",
"event": "$identify",
"distinct_id": "user distinct id",
"properties": {
"$set": {
"is_cool": "true"
}
},
"timestamp": "2020-08-16T09:03:11.913767"
}
Replace user distinct id
with a CleverTap profile property, such as:
"user distinct_id": "{{ Profile.Email | default: "[email protected]" }}"
- In CleverTap, click Preview & Test to send a test payload to PostHog.
- Verify that the user profile is successfully created or updated in your PostHog dashboard.

PostHog dashboard
Verify Integration
Once configured:
- Events triggered in CleverTap (such as app purchases or sign-ups) flow into PostHog for funnel and session analysis.
- User profiles from CleverTap enrich PostHog with attributes that can be used in segmentation and retention analysis.
- Changes made to campaigns or payloads in CleverTap are automatically reflected in PostHog data ingestion.
This integration creates a seamless connection between CleverTap engagement and PostHog analytics, enabling product teams to measure, iterate, and optimize experiences faster.
Updated about 14 hours ago