---
description: Step-by-step guide to ingest your event data from PostHog into RudderStack.
---

# PostHog

[**PostHog**](https://posthog.com/) is a complete product analytics stack that you can seamlessly deploy on your infrastructure. Built for both data analysts and managers, PostHog simplifies scalable product analytics, while giving you full control over all your user data.

RudderStack now supports PostHog as an Event Streams source. You can send your PostHog events to RudderStack by using the [**RudderStack PostHog plugin**](https://github.com/rudderlabs/rudderstack-posthog-plugin).

## ‌Getting started

Follow these steps to set up your PostHog source in the RudderStack dashboard:

* Go to your [**RudderStack dashboard**](https://app.rudderstack.com/) and click on **Add Source**. Then, select **Extole** from the list of **Event Stream** sources, as shown:

![PostHog source in RudderStack](https://876606571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lq5Ea6fHVg3dSxMCgyQ%2Fuploads%2Fgit-blob-57ae0aae3c89d13d1ab76ac98143f8e8117a6c9e%2Fposthog-1.png?alt=media)

* Assign a name to your source and click on **Next**.
* Your PostHog source is now configured. Note the source **Write key** - this will be required in the later steps.

![PostHog source write key](https://876606571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lq5Ea6fHVg3dSxMCgyQ%2Fuploads%2Fgit-blob-445b7f3223144a82933b0ea5f4e72290afdf2f5f%2Fposthog-2.png?alt=media)

## Setting up the RudderStack-PostHog plugin

Once you've successfully set up PostHog as a source on the RudderStack dashboard, follow these steps to configure and set up the PostHog-managed RudderStack plugin.

* Copy your PostHog source **Write key** from the RudderStack dashboard and your data plane URL.

For more information on the data plane URL and how to get it, refer to [this](https://rudderstack.com/docs/rudderstack-open-source/installing-and-setting-up-rudderstack/#what-is-a-data-plane-url-where-do-i-get-it) section.

* Then, go to your PostHog dashboard and go to **Plugins**. In the search bar, type **RudderStack**.
* Configure this plugin using the write key and the data plane URL that you copied above. Append `v1/batch` to this URL so that it is of the format `https://<DATA_PLANE_URL>/v1/batch`.

If you are using RudderStack Cloud, the default RudderStack Server URL will be `https://hosted.rudderlabs.com/v1/batch`

![RudderStack Server URL](https://876606571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lq5Ea6fHVg3dSxMCgyQ%2Fuploads%2Fgit-blob-128a5e0472dc82a163e9215841a40dc1a34349ea%2Fposthog-4.png?alt=media)

* Finally, enable this plugin. Any events generated in your PostHog instance will now be automatically sent to RudderStack. You can then route these events to your specified destinations.

## License

The RudderStack PostHog Plugin is released under the [**MIT License**](https://opensource.org/licenses/MIT).

## Contact us

For queries on any of the sections covered in this guide, you can [**contact us**](mailto:%20docs@rudderstack.com) or start a conversation in our [**Slack**](https://rudderstack.com/join-rudderstack-slack-community) community.
