Lifetime Value

Updated on February 9, 2026

The plugin tracks lifetime purchase value for registered customers by syncing two key metrics to Mautic custom fields. This data lets you segment and target contacts based on how much they have spent and how many orders they have placed.

The Two Fields

Each time an order syncs for a registered customer, the plugin sends two values to the Mautic contact:

  • mautic_woo_total_spent – The total amount the customer has spent across all orders in WooCommerce
  • mautic_woo_order_count – The total number of orders the customer has placed in WooCommerce

Both values are pulled from the WooCommerce customer record, so they always reflect the current totals at the time of sync. These are cumulative values, not just the current order amount.

How They Update

The lifetime value fields are updated every time an order triggers a sync. Because the values come directly from the WooCommerce customer object, they automatically account for all orders – including refunds, which reduce the total spent.

For example, if a customer has placed three orders totaling $250 and then one order is refunded for $50, the next sync would show:

  • mautic_woo_total_spent: 200
  • mautic_woo_order_count: 3

Guest Orders

Lifetime value tracking only works for registered customers (those who have a WordPress user account). Guest checkout orders still sync all other data (order JSON, tags, notes, and email triggers), but the total spent and order count fields are not sent because there is no WooCommerce customer record to pull from.

Creating the Fields in Mautic

Both fields must exist in Mautic before values can be synced. You can create them using the Mautic Fields tab in the plugin settings, which creates all required fields with a single click. Alternatively, you can create them manually in Mautic:

  • mautic_woo_total_spent – Type: Number
  • mautic_woo_order_count – Type: Number

Use Cases for Segmentation

With these fields available in Mautic, you can build powerful segments and automations:

  • VIP customers – Create a segment for contacts where total spent is greater than a threshold (e.g. $500) and send them exclusive offers
  • Repeat buyers – Segment contacts with an order count of 3 or more and add them to a loyalty campaign
  • First-time buyers – Target contacts where order count equals 1 with a welcome series or review request
  • Win-back campaigns – Combine the order count and last order date to identify customers who have not purchased recently
  • Tiered pricing – Send different discount levels based on total spend brackets

Next