New vs Returning Customers

Automatically flag orders as new or returning customer purchases for better ad targeting.

Overview

MRKT Mesh checks each order against the customer's purchase history and enriches the event with a customer_type field — either "new" or "returning". This enables platforms like Meta and GA4 to optimize for new customer acquisition.

How It Works

  1. A purchase event arrives via Shopify webhook
  2. MRKT Mesh queries the customer's order count from Shopify
  3. If the order count is 1, the customer is flagged as "new"
  4. If the order count is greater than 1, they're flagged as "returning"
  5. The enrichment data is attached to the event before delivery

Data Sent to Destinations

FieldDescription
customer_type"new" or "returning"
customer_order_countTotal number of orders
customer_lifetime_valueCumulative spend amount

Platform Integration

  • Meta CAPI: Sent as custom data parameters for audience segmentation
  • GA4: Sent as event parameters — register as custom dimensions for reporting
  • Klaviyo: Sent as event properties for flow segmentation
  • Google Ads: Used for new customer conversion value optimization