Last updated:

For message formatting instructions, see this dedicated page.

1. Create an incoming webhook in Discord

  1. Navigate to the channel where you want to add the webhook and select the 'Edit Channel' option from left navigation pane.
  2. Select the 'Integrations' option from the left navigation pane.
  3. If creating a webhook for the first time, click the "Create Webhook" button.
  4. If you have other webhooks, click "View Webhooks" and now click "New Webhook".
  5. Give the webhook any name you prefer (say PostHog).
  6. Select the channel where the message should be posted from the drop-down.
  7. Click the "Copy Webhook URL" button to copy the webhook URL into the clipboard.

It would look something like this.

Discord Webhook setup

For more information see the Discord webhook docs.

2. Setup webhook in PostHog

  1. Copy the Webhook URL into the PostHog Setup page:

    PostHog add webhook

  2. Click "Test & Save" and you should receive a message on Discord.

3. Add to action

For each Action that should be posted to Discord, select "Post to webhook when this action is triggered":

PostHog edit action

4. Celebrate


Was this page useful?

Next article

Using PostHog with a CDP

What is a CDP? A CDP is a Customer Data Platform. It is a platform that allows you to collect, and send customer data to other tools like product analytics (PostHog!), marketing automation tools, your CRM, data warehouses etc. The most common CDPs are Segment and RudderStack , both of which work with PostHog. If you already have a Customer Data Platforms (CDP) setup or are thinking of using one this guide will help you decide how to integrate with PostHog. Which PostHog CDP setup should I use…

Read next article