Discourse

Discourse

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Connect Discourse to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Connect your Discourse community forum to sync categories, topics, posts, tags, groups, and user stats into the PostHog Data warehouse.

Generate an Admin API key under Admin > API > Keys on your Discourse instance (a key scoped to "Global" access, or scoped to read the tables below, both work). The instance URL is your forum's address, e.g. https://yourforum.discourse.group.

Configuration

OptionTypeRequired
Instance URLtextYes
Admin API keypasswordYes
API usernametextYes

Linking Discourse to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Discourse
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
categories

A category groups related topics together, e.g. Support, Feature Requests, or Announcements.

Full refresh
topics

A discussion thread. Returned from the site's latest-activity topic list, so it covers every topic that has had activity.

Full refresh
posts

A single post (the original post or a reply) within a topic, from the site-wide post stream.

Incremental, Full refreshid
tags

A tag that can be applied to topics to aid discovery and filtering.

Full refresh
groups

A user group, used for permissions, mentions, and messaging.

Full refresh
users

A forum member and their aggregate activity stats, from the public user directory leaderboard.

Full refresh