
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
| Option | Type | Required |
|---|---|---|
Site URL | text | Yes |
Username (optional) | text | No |
Application password (optional) | password | No |
Linking WordPress to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select WordPress
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import