I'd build this with a lightweight Liquid gate that checks `customer.orders_count` at page load—if zero or no session, show the offer; if the customer has prior orders, redirect them to the main shop. Then layer in a Shopify Flow automation to tag first-time redeemers the moment their order posts, and configure GTM + GA4 to exclude returning customers from the campaign audience so the PPC budget stays on cold traffic.
A DTC merchant running paid acquisition campaigns wanted to isolate a specific product offer to first-time customers only, avoiding wasted ad spend on repeat buyers. The merchant needed a way to detect purchase history at the point of landing and route traffic accordingly while tracking redemption for campaign ROI measurement.
Four pieces
Storefront
New Customer Detector
Checks if the logged-in customer has ever placed an order; if not, shows the offer—if yes, redirects to your main shop.
Theme app extension
theme/snippets/first-time-gate.liquidliquid
{% if customer %}
{% if customer.orders_count == 0 %}
<!-- New customer: show the offer page -->
<div class="offer-container">
<h1>Exclusive First-Time Offer</h1>
<!-- Your landing page content here -->
</div>
{% else %}
<!-- Returning customer: redirect -->
<script>
window.location.href = '/';
</script>
{% endif %}
{% else %}
<!-- Not logged in: show offer (they may buy as guest or log in) -->
<div class="offer-container">
<h1>Exclusive First-Time Offer</h1>
</div>
{% endif %}
Place this snippet in the landing page template; it runs on every load.
Storefront
Offer Landing Page
A custom page template with the product, copy, and cart button designed to convert first-time buyers.
Replace 'your-product-handle' with your actual product handle.
Operations
Offer Redemption Tag
Automatically tags a customer the moment they complete their first purchase from this campaign, enabling tracking of campaign performance and prevention of double-offers.
Shopify Flow
Shopify Flow editor: When → Thenflow
Trigger: Order created
Condition: Customer's order count equals 1 (first order)
Then: Tag customer with "first-time-offer-redeemed"
Then: Add customer to Shopify segment "First-Time Offer Customers"
Then: Send notification (optional): "Congratulate them via email using Klaviyo or your ESP"
Enables you to track campaign performance and prevent double-offers.
Operations
PPC Pixel & Redirect
Fires a custom event when a first-time visitor arrives, and sends repeat customers back to your homepage so they don't waste PPC impressions.
Theme script + GTM
Got a similar problem?
Sketch your build in 30 seconds — voice, type, or attach a screenshot.