
Adobe Commerce (Magento)
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.

Connect Adobe Commerce (Magento) to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Enter your Adobe Commerce (Magento 2) store URL and API credentials to pull your store data into the PostHog Data warehouse.
The recommended way to connect is an integration access token: in the admin go to System > Extensions > Integrations, create an integration, grant it read access to Sales, Catalog, Customers and Carts, then activate it and copy the Access Token.
On Magento 2.4.4 and later, integration tokens are rejected as bearer tokens until you set Stores > Configuration > Services > OAuth > Access Token Expiration > Allow OAuth Access Tokens to be used as standalone Bearer tokens to Yes. If you can't change that setting, connect with an admin username and password instead and PostHog will mint a short-lived admin token for each sync.
Configuration
| Option | Type | Required |
|---|---|---|
Store URL | text | Yes |
Store code (optional) | text | No |
Authentication method | select | Yes |
Linking Adobe Commerce (Magento) to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Adobe Commerce (Magento)
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import