The SKU Filter lets you restrict which orders trigger a sync to Mautic based on product SKUs. When a filter is set, only orders that contain at least one product with a matching SKU will sync.
Setting the Filter
To configure the SKU filter:
- Go to WooCommerce > Mautic Integration and click the Order Sync tab.
- Under Sync Options, find the SKU Filter field.
- Enter the text to match against product SKUs.
- Click Save Changes.
Leave this field blank to sync all products (the default behavior).
How Substring Matching Works
The filter uses simple substring matching. If the filter text appears anywhere within a product’s SKU, that product is considered a match. The match is case-sensitive.
For example, if you set the SKU filter to TEE, the following products would match:
TEE-BLU-M– matches (starts with TEE)TEE-RED-L– matches (starts with TEE)COTTON-TEE-01– matches (contains TEE)
These products would not match:
BELT-BRN-L– does not contain TEEtee-blu-m– does not match (lowercase tee vs uppercase TEE)- Products with no SKU set – these are always excluded when a filter is active
What Happens When Filtering
When the SKU filter is active, the plugin checks each product in the order against the filter. Only matching products are included in the synced order data and tags. If an order contains a mix of matching and non-matching products, only the matching products appear in the JSON payload and tag list.
If none of the products in an order match the SKU filter, the entire order sync is skipped. No data, tags, notes, or emails are sent for that order.
Use Cases
The SKU filter is useful when you only want to track purchases of specific product lines in Mautic:
- Product line tracking – If all products in a line share a SKU prefix (e.g. “PREM-” for premium products), set the filter to “PREM-” to only sync premium product purchases
- Brand filtering – If SKUs are prefixed by brand name, filter by brand to only sync orders for a specific brand
- Course or digital product tracking – If digital products use a distinct SKU pattern (e.g. “COURSE-“), filter to only track course purchases in your Mautic automations
- Excluding low-value items – If shipping or accessory products have a common SKU pattern, you could structure your SKUs so that only your main products match the filter