klaviyo email marketing SMS segmentation

Klaviyo + Detectly

Sync Detectly attribution data with Klaviyo to build segments by acquisition channel, measure email and SMS revenue accurately, and trigger flows based on marketing source.

What you get

  • Customer tags synced to Klaviyo for channel-based segments
  • Email and SMS campaign revenue attribution via UTM tracking
  • Flow triggers based on acquisition channel
  • Segment customers by first-touch marketing source
  • Distinguish email revenue from paid ad revenue
  • UTM tracking for Klaviyo campaign and flow links

How to set it up

  1. 1 Install Detectly from the Shopify App Store
  2. 2 Enable customer tagging in Detectly settings
  3. 3 Detectly auto-tags customers with their acquisition channel
  4. 4 Tags sync to Klaviyo via Shopify customer properties
  5. 5 Build Klaviyo segments using Detectly channel tags

Why Klaviyo and Detectly Work Better Together

Klaviyo is one of the most popular email and SMS platforms for Shopify merchants. It handles campaign sends, automations, and flow triggers. But Klaviyo’s built-in attribution has a well-known limitation: it tends to over-attribute revenue to email. If a customer receives an email and also clicks a paid ad before purchasing, Klaviyo may claim that sale for email because the email was opened within its attribution window.

Detectly provides an independent source of attribution truth. By tracking UTM parameters and click IDs at the order level, Detectly shows which channel actually drove each purchase. When combined with Klaviyo, you get the best of both: powerful email automation plus accurate cross-channel attribution.

How the Integration Works

Customer Channel Tags

Detectly automatically tags every customer in your Shopify store with their acquisition channel — the marketing source that brought them to your store for the first time. These tags follow the format detectly:source:facebook, detectly:source:google, detectly:source:email, and so on.

Because Klaviyo syncs Shopify customer data, these tags appear in Klaviyo as customer properties. You can then build segments based on how customers were originally acquired:

  • Customers acquired through Meta Ads
  • Customers acquired through Google Search
  • Customers acquired through influencer campaigns
  • Customers acquired organically

This unlocks a powerful capability: sending different email content to customers based on how they found your store.

Email Revenue Attribution

When you send Klaviyo campaigns and flows with proper UTM parameters, Detectly attributes resulting orders to email as a channel. This gives you an accurate picture of how much revenue your email program actually drives, separate from what Klaviyo’s own attribution model reports.

The key is adding UTM parameters to every link in your Klaviyo emails:

  • utm_source=klaviyo
  • utm_medium=email
  • utm_campaign={campaign_name}

Detectly captures these parameters when the customer clicks through and purchases. You see the revenue from email alongside revenue from ads, organic, and other channels — all using the same attribution methodology.

SMS Attribution

The same approach works for Klaviyo SMS campaigns. Tag your SMS links with:

  • utm_source=klaviyo
  • utm_medium=sms
  • utm_campaign={campaign_name}

Now you can see exactly how much revenue SMS drives versus email versus paid ads. No more guessing whether that SMS blast actually moved the needle.

Building Smarter Segments

With Detectly’s channel tags synced to Klaviyo, you can create segments and flows that respond to acquisition data:

Segment by acquisition channel: Create a segment of customers originally acquired through Meta Ads. Send them a different welcome series than customers who found you through organic search. Paid customers may need more nurturing, while organic customers may already be brand-aware.

VIP flows by channel: Identify high-value customers from specific channels and create targeted retention campaigns. If your best customers come from Google Shopping, build a dedicated post-purchase flow for that segment.

Win-back by source: Customize win-back messaging based on the original channel. A customer who discovered you through an influencer campaign might respond better to social proof, while a search customer might prefer product comparisons.

Suppress accurately: If you know a customer just purchased through a Meta ad, you can suppress them from promotional emails for a period instead of risking an irrelevant send.

Measuring True Email ROI

One of the biggest benefits of combining Detectly with Klaviyo is getting an honest view of your email channel’s contribution. Klaviyo’s default attribution counts revenue when a customer opens or clicks an email within a certain window before purchasing. This means email often gets credit for sales that were actually driven by a retargeting ad or a direct visit.

Detectly’s UTM-based attribution only credits email when the customer actually clicked an email link before purchasing. The difference can be substantial — and understanding it helps you allocate your marketing budget more effectively.

Common Questions

Does Detectly replace Klaviyo’s analytics? No. Klaviyo’s analytics are useful for measuring email-specific metrics like open rates, click rates, and flow performance. Detectly adds cross-channel order attribution so you can see email’s true contribution alongside other channels.

How do tags get to Klaviyo? Detectly adds tags to Shopify customer profiles. Klaviyo syncs Shopify customer data automatically, so the tags appear in Klaviyo within its normal sync interval.

Do I need to change my Klaviyo setup? The main change is ensuring all links in your Klaviyo emails and SMS messages include UTM parameters. This is a best practice regardless of Detectly — it makes your data better everywhere.

Can I use this with Omnisend or Mailchimp instead? The customer tagging feature works with any email platform that syncs Shopify customer data. The UTM tracking approach works with all email platforms. See our email marketing integration for details.

Get Started

Install Detectly, enable customer tagging, and add UTM parameters to your Klaviyo campaigns. Within days you will have a clear picture of how email fits into your full marketing funnel.

Install Detectly free or view pricing to compare plans.

Try Detectly free today

Install in one click from the Shopify App Store. No code, no tracking pixels — see your true ROAS within 24 hours.