Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(warehouse_sources): add ActiveCampaign ecommerce and email tables (#97843)

Tom Owersd64e9ac31025
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md
index 62c27c8f6c17..2fce5cdeb4d0 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md
@@ -38,14 +38,14 @@ Note: Source uses a static ENDPOINTS list (products/warehouse_sources/backend/te
## ActiveCampaign — gaps
-Today (12): `accounts`, `automations`, `campaigns`, `contacts`, `custom_fields`, `deal_groups`, `deal_stages`, `deals`, `forms`, `lists`, `segments`, `tags`
+Today (16): `accounts`, `automations`, `campaigns`, `contacts`, `custom_fields`, `deal_groups`, `deal_stages`, `deals`, `ecom_customers`, `ecom_order_products`, `ecom_orders`, `email_activities`, `forms`, `lists`, `segments`, `tags`
Diffed against: <https://developers.activecampaign.com/reference/overview>
-- [ ] `emailActivities` — per-contact email opens/clicks/sends, the core engagement fact table (high)
-- [ ] `ecomOrders` — e-commerce revenue transactions; no commerce data is synced at all today (high)
-- [ ] `ecomOrderProducts` — order line items needed for product-level revenue breakdowns (high)
-- [ ] `ecomCustomers` — resolves the customer IDs carried on ecom orders (high)
+- [x] `emailActivities` — per-contact email opens/clicks/sends, the core engagement fact table (high)
+- [x] `ecomOrders` — e-commerce revenue transactions; no commerce data is synced at all today (high)
+- [x] `ecomOrderProducts` — order line items needed for product-level revenue breakdowns (high)
+- [x] `ecomCustomers` — resolves the customer IDs carried on ecom orders (high)
- [ ] `dealActivities (GET /deals/{id}/dealActivities)` — deal stage-transition and change history (high)
- [ ] `contactActivities (GET /activities)` — contact-level activity timeline across campaigns and automations (high)
- [ ] `contactLists (list memberships)` — membership table joining synced contacts to synced lists (high)
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/active_campaign/settings.py b/products/warehouse_sources/backend/temporal/data_imports/sources/active_campaign/settings.py
index c1a570bb8b58..6b95eb04b9df 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/active_campaign/settings.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/active_campaign/settings.py
@@ -87,6 +87,26 @@ ACTIVE_CAMPAIGN_ENDPOINTS: dict[str, ActiveCampaignEndpointConfig] = {
path="/fields",
data_selector="fields",
),
+ "email_activities": ActiveCampaignEndpointConfig(
+ name="email_activities",
+ path="/emailActivities",
+ data_selector="emailActivities",
+ ),
+ "ecom_orders": ActiveCampaignEndpointConfig(
+ name="ecom_orders",
+ path="/ecomOrders",
+ data_selector="ecomOrders",
+ ),
+ "ecom_order_products": ActiveCampaignEndpointConfig(
+ name="ecom_order_products",
+ path="/ecomOrderProducts",
+ data_selector="ecomOrderProducts",
+ ),
+ "ecom_customers": ActiveCampaignEndpointConfig(
+ name="ecom_customers",
+ path="/ecomCustomers",
+ data_selector="ecomCustomers",
+ ),
}
ENDPOINTS = tuple(ACTIVE_CAMPAIGN_ENDPOINTS.keys())