Track purchases from a specific collection
Last updated
Was this helpful?
A custom event based on purchase, scoped with a trigger condition so it fires only when the order contains a product from one collection.
A collection often maps to a business line: a new range you're launching, a brand within your store, a category with different margins. A dedicated event lets a destination report on, trigger from, or optimize toward that line, while the standard purchase event keeps flowing untouched.
A Shopify collection, product type, or tag that identifies the product line
At least one Littledata destination connected, for example Meta Conversions API or Google Analytics
Access to the Event Editor in the Littledata app
Without a condition, the new event fires on every purchase. Add a condition so it only fires when the order contains a product from the collection:
products.collections
contains
skincare
products.category
does not equal
Health
products.product_type
does not equal
Health
The event fires when any product in the order matches, so a mixed cart with one skincare item still counts. See Trigger conditions.
Meta: in Events Manager, mark the event as a custom conversion to run campaigns optimized for the range, for example a launch campaign bidding toward SkincarePurchase rather than any purchase.
GA4: mark the event as a key event to compare which channels drive the line, without segmenting every purchase report by item.
Klaviyo: use the event as a flow trigger for line-specific post-purchase journeys, for example replenishment reminders for consumables.
Place a test order containing a product from the collection.
Confirm the new event arrives alongside the standard purchase event, for example in Meta Events Manager or GA4 DebugView.
Orders without a product from the collection should fire purchase only.
This setup is a custom event conditioned on what's in the order. Any product attribute your store maintains can define a line:
Condition on product type, vendor, tag, or a SKU prefix instead of a collection.
The order value still reflects the whole cart. If the destination should only see the line's revenue, adjust the event's field mappings.
Custom events exist per connection. To use the same event in another destination, create it there as well.
Last updated
Was this helpful?
Was this helpful?