PostHog offers a suite of product analysis tools, including funnels, heat maps, session recording, and more, all in a single platform.

MoEngage <> PostHog

With the MoEngage and PostHog integration, you can forward events being tracked in MoEngage to your PostHog dashboard to perform holistic analytics on your users' behaviors. You can also forward users to PostHog using MoEngage's Connector Campaigns.




Forward events on MoEngage to PostHog

With MoEngage's Connector Campaigns, you can forward your events to PostHog when they perform any action on your app or website.

To create a connector campaign on MoEngage, 

  1. Navigate to Create Campaign >> Connectors >> Custom and choose the delivery type most suitable to your needs. For this example, we will select "Event Triggered" and select the event as "Purchased".
  2. On step 2 of the campaign:

Call the PostHog API

To send your event to Heap, use the POST method and configure the payload.

  • Select the method as POST
  • Headers
    • Content-Type: application/json
  • Add the endpoint as Webhook URL: (for US Cloud) or (for EU Cloud).
  • Body:
    Type @ to personalize your payload.
        "event": "Purchase",
        "api_key": "<ph_project_api_key>",
        "distinct_id": "{{UserAttribute['Email (Standard)']}}",
        "properties": {
            "item_names": "{{EventAttribute['Item Names']}}",
            "value": "{{EventAttribute['Value']}}"

Preview your request 

At this point, your campaign should be ready to test and send. You can also test your connector configuration using the Test functionality available in Step 2 of Create Connector Campaign.Screen_Shot_2022-02-22_at_11.12.42_AM.png

You can go ahead and Publish the campaign.

Forward users on MoEngage to PostHog

To forward MoEngage users to PostHog, or update their properties on PostHog, set up a MoEngage Connector Campaign as shown above and use the PostHog Identify API to create or update users inside PostHog.



Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?