Track customer lifetime value by campaign in Google Analytics

Send Shopify data to Google Analytics with Littledata's server-side tracking.

Standard GA4 campaign reports credit a campaign with the revenue from one order. Two campaigns with equal ROAS can bring in very different customers. Littledata attaches each customer's total lifetime revenue to every checkout event, so you can compare campaigns and influencers by the long-term value of the buyers they bring in, not just first-purchase spend. Subscription renewals count too, so brands on Recharge or similar see acquisition channels ranked by true lifetime value.

  1. Shopify logo

    Every event carries the customer's full purchase history

    Littledata sends all three parameters on every checkout and post-purchase event, including recurring subscription charges. Each new order updates the values, so lifetime revenue grows with the customer.

  2. Google Analytics logo

    Campaign reports ranked by customer lifetime spend

    Littledata sets up the matching user-scoped custom dimensions in GA4 automatically, so there is nothing to configure. Build segments or explorations that filter by lifetime revenue, and you see which channels bring repeat buyers, not just one-time purchasers.

The Shopify data you can target

Littledata calculates these from Shopify order history and attaches them to every ecommerce event from checkout onwards as user-scoped parameters.

ParameterWhat it tells you
lifetime_revenue_ldTotal revenue from the customer's current and all previous purchases
purchase_count_ldHow many orders the customer has placed in total
last_transaction_date_ldWhen the customer last placed an order
The data layer for Shopify
Littledata unifies browser and server events into one consistent data layer across all your marketing channels, including Shopify Markets, subscriptions, and metafields.
Recognize more returning Shopify customers
Stream first-party data into Google and Meta Ads
Smarter Klaviyo flows using complete Shopify data
Start free trial
The data layer for Shopify
Shopify logo

What is Shopify?

Shopify is an e-commerce platform that enables businesses to create, customize, and manage online stores, offering tools for product management, payment processing, and order fulfillment. It provides scalable solutions for entrepreneurs and enterprises to sell products online, in-person, and across various sales channels.

Visit the Shopify website →