Ad platforms

Choose which orders are sent to each pixel

Updated

Each destination has a Filters box with one rule per line; an event goes out only when every rule matches. Next to country, value, the UTM fields, domain, product, market, currency and source, orders can be filtered by customer type (customer), order type (order_type), B2B company orders (b2b) and the buyer's language (locale).

Steps

  1. Open the destination

    In Connections › Tracking & destinations, edit the destination and scroll to Filters.

  2. Add the rules

    Add one rule per line in the form field op value, for example customer eq new for an acquisition pixel, or b2b neq yes to leave company orders out. Save.

    You should see: The destination saved with the rules. A line with an unknown field or operator is refused with “Invalid filter: …”.

  3. Check what goes out

    Place a test order that should match and one that should not.

    You should see: Data quality › Deliveries lists the matching order for this destination; the other order has no row for it.

Fields and operators

  • customer: new, returning or unknown (the shop's first-order flag, else the order history in ROASaurus).
  • order_type: one_time, subscription_first or subscription_renewal (renewals only reach a pixel when the store sends them).
  • b2b: yes for a Shopify B2B order placed for a company (b2b: true in the orders API), else no.
  • locale: the buyer's language, for example nl or de-ch (Shopify's customer locale, or locale in the orders API).
  • Also: country, value, utm_source, utm_medium, utm_campaign, utm_content, utm_term, utm_id, host, product_id, market, currency and source (web, app, pos, draft).

Operators: eq, neq, in (comma-separated list), gte, lte, contains. The customer, order-type, B2B and language fields describe orders; storefront events have no such values. To steer bidding to new customers without dropping returning ones, use the new-customer label (Google Ads) or the new-customer bonus instead.

Common problems

“Invalid filter: …”
The line is not field op value, or the field or operator is not in the list above. Check the spelling.
Some orders count as "unknown"
Neither the shop's first-order flag nor the order history in ROASaurus told the customer type. Use customer neq returning to send those orders along with new customers.

Next step

All destinations and filters

Still stuck? Email us.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.