WordPress

WordPress

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

Sync posts, pages, comments, media, categories, tags, and users from a self-hosted WordPress site via the core REST API (/wp-json/wp/v2).

Enter your site URL (for example https://example.com). Public, published content syncs without credentials.

To sync private content or authenticate, create an Application Password under Users > Profile > Application Passwords and enter your username and that password. Application passwords require WordPress 5.6+ and an HTTPS site.

Configuration

OptionTypeRequired
Site URLtextYes
Username (optional)textNo
Application password (optional)passwordNo

Linking WordPress to PostHog

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

Community questions

Questions about this page? or post a community question.