Aivie for WooCommerce
Sync WooCommerce customers and orders to Aivie marketing automation (based on Mautic).
Install in
Aivie for WooCommerce connects your WooCommerce store to Aivie, a Mautic-based marketing automation platform. When a customer places an order, the plugin automatically syncs the contact and order data to Aivie Commerce so you can trigger follow-up campaigns, track revenue, and personalise communications.
This plugin is an integration with an external Aivie or Mautic service configured by the site administrator.
Service documentation:
License and Trademark
This plugin is licensed under GPLv2 or later.
Aivie is a trademark of Idea 2 Collective GmbH. Mautic is an open source marketing automation project.
Aivie is built on Mautic and extends it with hosted infrastructure, APIs and additional plugins.
This plugin is developed by Aivie (Idea 2 Collective GmbH). Aivie is an official Mautic partner. This is not a Mautic project.
Forks and modified versions must not imply official endorsement by Aivie unless explicitly permitted.
Features:
- Sync contacts and orders automatically on payment complete, failed, or new order events.
- Optional WooCommerce Subscriptions support for lifecycle events, renewals, and variable subscriptions.
- Send WooCommerce line items as Aivie Commerce order items, including inline product catalog details for purchased products.
- Reuse the Mautic tracked contact ID (
mtc_idcookie) from the browser session — no double contact creation. - Automatically merge anonymous tracking contacts into existing billing-email contacts so order attribution is preserved.
- Assign Aivie segments and campaigns on order sync based on the actual segment and campaign IDs configured in Aivie.
- All relevant order meta and item meta sent under
attributes. - Sends paid subscription parent and renewal orders with an embedded Aivie subscription block.
- Sensitive meta keys (tokens, passwords, card numbers) are automatically excluded.
- Records sanitized Stripe failure reasons as private order notes and syncs them to Aivie order attributes.
- Uses the encrypted, refresh-aware OAuth connection from Aivie Marketing Automation when available.
- Keeps the original OAuth 2.0 and manual bearer-token connection as a legacy fallback.
- Test connection button in settings.
- Manual sync action on any WooCommerce order.
- Bulk sync action on the WooCommerce orders list, queued via Action Scheduler.
- Automatic retry via Action Scheduler (ships with WooCommerce) on network or server errors.
- WP-CLI commands for debugging and backfills.
- Safe dry-run migration of legacy Client ID and Client Region metadata to subscription and order line items.
- HPOS (High-Performance Order Storage) compatible.
- GDPR: participates in WordPress personal data export and erasure flows.
Developer Extension Points
Plugins can enrich local WooCommerce data while this plugin remains responsible for the Aivie API transport and OAuth connection:
aivie_wc_before_order_syncruns before an order event ID and payload are built. It receives theWC_Orderand the force-sync flag.aivie_wc_before_subscription_syncruns before a subscription event ID and payload are built. It receives the subscription, its parent order, and the force-sync flag.aivie_wc_contact_custom_fieldsadds Aivie/Mautic contact fields keyed by field alias. It receives the current fields, order, and related subscription when available.
Example:
`
add_filter(
‘aivie_wc_contact_custom_fields’,
static function (array $fields, WC_Order $order, ?object $subscription): array {
$fields[‘custom_alias’] = ‘value’;
return $fields;
},
10,
3
);
`
Custom contact aliases must start with a lowercase letter and contain only lowercase letters, digits, and underscores. Values must be scalar or null. Standard contact fields take precedence over custom aliases. Extension callbacks should be idempotent. An exception from a pre-sync callback, or rejection of required custom contact fields by Aivie, postpones synchronization instead of sending incomplete data.
Recommended Plugins
- WP Mautic for Tracking Integration – for improved contact attribution via
mtc_id. - WooCommerce – for e-commerce functionality and order management.
- Aivie.ch for OpenSource Marketing Automation – the Aivie platform itself, to receive and act on the synced data.
Privacy
When the plugin is configured and automatic sync is enabled by an administrator, it sends WooCommerce customer and order data to the configured Aivie or Mautic instance. This can include contact billing fields, order totals, currency, payment method title, product line items, product catalog details for purchased products, order status, selected safe order metadata, selected safe order item metadata, and the configured source labels.
The plugin can also read the configured Mautic tracking contact cookie, mtc_id by default, during classic or block checkout. If present and valid, the plugin stores that contact ID on the order and, for logged-in customers, in user meta. The contact ID is then sent with synced order data so the external service can associate the WooCommerce order with an existing contact. Administrators can disable this behavior in the plugin settings.
Sensitive metadata keys containing values such as passwords, tokens, secrets, authorization data, API keys, private keys, card numbers, CVV/CVC values, IBANs, or account numbers are excluded before sync. Stripe failure reasons are sanitized before storage and sync; payment object IDs, credentials, email addresses, URLs, and card-like numbers are redacted. The plugin registers WordPress personal data export and erasure callbacks for its stored sync metadata and tracking contact ID.
Site owners should disclose this data transfer and tracking-contact usage in their own privacy policy and obtain any consent required for their store, jurisdiction, and Aivie or Mautic configuration.
Written by Joobi from the project's own listing. See the source page
0.2.0
- Added normalized subscription item syncing using the same product mapping as order items.
- Subscription items now link to the shared Aivie product catalog, enabling active-subscription product filters in Aivie.
0.1.34
- Added an explicit order date separate from the event date.
0.1.33
- Fixed product and order item tax handling by resolving the tax rate ID from totals and line items.
0.1.32
- Added support for sending order-level and item-level discounts with more precise gross and net amounts.
0.1.31
- Added line item discount handling.
0.1.30
- Fixed the applied tax rate for each order item.
0.1.29
- Improved subscription renewal syncing by retrying when line items are not yet available.
0.1.28
- Added mapping from WooCommerce attributes to Aivie fields.
- Added mapping from WooCommerce products to Aivie products in Aivie Commerce.
0.1.27
- Standardized the payment type sent to Aivie, such as
card.
0.1.26
- Deleted Aivie orders and subscriptions are now recreated when synced again from WooCommerce.
0.1.24
- Enable Aivie to directly open the order and subscription details from the plugin interface.
0.1.23
- Segment and campaign assignment now uses real Aivie segment and campaign IDs configured in the plugin settings.
0.1.22
- Anonymous tracking contacts are now automatically merged into the matching billing-email contact so order attribution is not lost.
0.1.20
- Added full tax handling: tax amount, tax rate, and tax treatment are sent per order item.
- Fixed: WooCommerce Subscriptions are no longer mistakenly synced as regular orders.
0.1.19
- Bulk sync action on the WooCommerce orders list, processed via Action Scheduler.
- Fixed: existing orders in Aivie are now correctly updated (PATCH) instead of creating duplicates.
0.1.10
- Amounts are now correctly converted to the currency minor unit for all currencies, including zero-decimal currencies.
0.1.7
- Added a Settings link on the WordPress plugin overview page for quicker access.
0.1.2
- Added WooCommerce Subscriptions support: lifecycle events, renewals, and variable subscriptions.
0.1.0
- Initial release.
- Contact and order sync on payment complete, failed order, and new order events.
- OAuth 2.0 Authorization Code flow.
- Mautic tracking ID capture and reuse.
- Action Scheduler retry with jitter.
- WP-CLI commands.
- HPOS compatibility.
- GDPR personal data export and erasure.
Follow this listing's changes (Atom feed)