Marketing

How the Klaviyo Shopify integration tracks events

How Klaviyo collects Shopify data: order events, Checkout Started, onsite events, how it identifies visitors, where coverage ends and how to set it up.

·8 min read·By the ROASaurus team

Key takeaways
  • Klaviyo gets Shopify data in three ways: order and customer data synced from Shopify, Checkout Started from the checkout, and onsite events from the storefront.
  • Order events reach Klaviyo for every order; onsite events such as Viewed Product and Added to Cart only exist for visitors Klaviyo has identified.
  • Shopify-branded onsite events need Track behavioral events turned on in Klaviyo, and Klaviyo's own onsite events need its app embed in your theme.
  • Coverage ends at anonymous visitors, visitors without consent where it applies, Added to Cart with one product, and order changes after the first sync.
  • Extra event sources write their own metrics in Klaviyo, so flows must be set up to use them without sending anyone two emails.

The Klaviyo Shopify integration collects data in three ways. It syncs orders and customers from Shopify in real time, so events such as Placed Order and Fulfilled Order reach Klaviyo for every order. It records Checkout Started when Shopify sends checkout details with an email address or phone number. And it tracks storefront activity, such as Viewed Product and Added to Cart, but only for visitors it has already identified. That last part decides how many people your browse and cart flows can reach.

This guide lists the events the integration tracks and where each comes from, how Klaviyo identifies visitors, where its coverage ends, how to set it up correctly, which practices keep flows accurate, and how ROASaurus works next to it.

How the Klaviyo Shopify integration collects data

Shopify orders and customersSynced in real time: Placed Order, Ordered Product, fulfilment, cancellations, full refunds, shipments
Shopify checkoutCheckout Started once a valid email or phone is entered
StorefrontViewed Product, Added to Cart, Viewed Collection, Submitted Search, Active on Site, for identified visitors
Klaviyo profiles and flowsMetrics, segments and flow triggers
Order data does not depend on the visitor's browser. Storefront events depend on identification, consent and tracking settings.

When you first connect, Klaviyo syncs the last 90 days of orders and customers, then older data, up to 10 years by default. After that, new data syncs in real time. Klaviyo does not re-sync an event later: tags or edits added to an order after it was processed do not update the event in Klaviyo.

What do the Shopify icon and the gear icon mean?

In Klaviyo's metrics list, Shopify-branded metrics have a Shopify icon. Active on Site and the Viewed Product event tracked by Klaviyo's own app embed have a gear icon, and so do metrics sent through Klaviyo's API by other tools. Two metrics can share a name, such as Viewed Product, and come from different sources. The icon tells you where a metric comes from, not whether it was sent from a browser or a server, so check the source before you pick a flow trigger.

What events does the Klaviyo Shopify integration track?

EventRecorded whenNotes
Placed OrderAn order is created in ShopifyAll items, prices, discounts; the base for revenue and the Placed Order filter in flows
Ordered ProductFor each item in a placed orderOne event per line item, with variant details
Fulfilled Order, Fulfilled Partial OrderAn order is fulfilled in full or in partFor post-purchase timing
Cancelled OrderAn order is cancelled before fulfilment
Refunded OrderAn order is refunded in fullPartial refunds do not trigger it
Confirmed Shipment, Marked Out for Delivery, Delivered ShipmentShopify gets the carrier updateOnly for carriers that provide these updates to Shopify
Checkout StartedShopify sends checkout details with a valid email or phoneAll cart items and a checkout URL that rebuilds the cart
Added to CartAn identified visitor adds an itemShopify-branded; one product per event; needs Track behavioral events
Viewed ProductAn identified visitor views a productFrom the app embed (gear icon) or Shopify pixel tracking (Shopify icon)
Viewed Collection, Submitted SearchAn identified visitor views a collection or searchesShopify-branded; need Track behavioral events
Active on SiteAn identified visitor is on the siteFrom the app embed; carries the page URL and UTM tags
Summarized from Klaviyo's Shopify data reference. Check it for the full list of properties per event.

How does Klaviyo identify visitors on Shopify?

Order events arrive with the customer's details from Shopify, so they need no separate identification. Storefront events do. Klaviyo recognizes a visitor when they:

  • submit a Klaviyo sign-up form or a Shopify form,
  • click a link in a Klaviyo email or SMS (the _kx parameter),
  • enter an email address at checkout,
  • log in to a customer account, or with Shop at checkout,
  • are identified by your own code through Klaviyo's JavaScript API.

After that, Klaviyo keeps the identity in its __kla_id cookie, which browsers such as Safari can clear after a week without a visit. With the anonymous visitor activity backfill on and consent given, Klaviyo can store onsite events from before identification in the browser and add them to the profile once the visitor is identified there. Our guide to Klaviyo abandoned cart flows goes through identification in detail.

Where the integration's coverage runs out

  • Anonymous visitors. A visitor who browses and adds to cart before giving an email creates no storefront events. If they identify later and leave, the earlier cart action may not exist as a trigger.
  • Consent. Based on your Shopify customer privacy settings, Klaviyo may not track onsite events for visitors in the EU, EEA, UK and Switzerland who did not consent. That is correct behavior, but it lowers flow numbers.
  • Browser limits. Events tracked by Klaviyo's script in the browser can be lost to ad blockers, privacy settings and short cookie lifetimes.
  • One product per Added to Cart. An email built on Added to Cart shows the last item added; rules on cart value or category are estimates. Checkout Started carries the full cart.
  • No checkout steps in between. The native events go from Checkout Started to Placed Order, with nothing for entering shipping or payment details.
  • No later changes. Partial refunds and tags or edits after an order was synced do not change the events in Klaviyo.

How to set up Klaviyo with Shopify correctly

Before you start, you need a Klaviyo account, owner or staff access in Shopify with permission to install apps, your store's myshopify.com address, a main email list for new subscribers, SMS set up in Klaviyo if you want to sync SMS subscribers, and your consent banner configured with Shopify's customer privacy settings.

  1. Connect the store

    In Klaviyo, open Integrations, find Shopify and click Install. Enter your myshopify.com address, review the sync settings, click Connect to Shopify, approve the app in Shopify and confirm the account in Klaviyo.

  2. Choose what syncs from Shopify

    Sync email subscribers who accept marketing at checkout or in Shopify forms to your main list, and SMS subscribers to a separate list. Turn on Shopify Markets syncing if you sell in several markets.

  3. Choose what syncs to Shopify

    Decide whether Klaviyo profiles and their properties should sync back to Shopify customers. Read what each option creates before you turn it on.

  4. Turn on onsite tracking

    Check Track behavioral events, then turn on the Klaviyo app embed in your Shopify theme and save. Without it, Viewed Product and Active on Site are not tracked.

  5. Turn off Shopify's own abandoned checkout emails

    Before your Klaviyo recovery flow goes live, so shoppers do not get two reminders.

  6. Check the historical sync and test

    Watch the historical data progress, then place a test order and a test checkout and check the events on the profile.

Core Klaviyo features that matter for Shopify stores

  • Flows triggered by metrics, segments or dates, with time delays, filters and conditional splits.
  • Segments that update on their own from orders, onsite activity and profile properties.
  • Sign-up forms that grow the list and identify visitors earlier.
  • SMS in the same flows, with its own consent.
  • Product data from your Shopify catalog for recommendations and dynamic product blocks.
  • Revenue reporting per flow and campaign, using Placed Order as the conversion under Klaviyo's attribution settings.

Best practices for Klaviyo flows

  1. Trigger on the right metric. Check the source icon and that the metric actually has recent events.
  2. Exclude buyers. Add a Placed Order filter so people who already bought drop out of abandonment flows.
  3. Separate cart and checkout flows. Run Added to Cart and Checkout Started flows apart, and remove people who started checkout from the cart flow.
  4. Use the full cart where it matters. Build cart-value or category rules on Checkout Started, which has every item.
  5. Test with real profiles. Place test checkouts on desktop and mobile, with consent accepted and declined.
  6. Review numbers against Shopify. Compare flow recipients with Shopify's abandoned checkouts and your cart sessions every month.

How to run native and extra tracking together

Tools that add events to Klaviyo, such as server-side tracking apps or the ROASaurus checkout booster, send them through Klaviyo's API. They arrive as their own metrics next to the Shopify-branded ones, even with the same name. Keep the native integration running and connect the extra source alongside it:

  1. Leave native flows on native metrics

    Your existing flows keep working as before.

  2. Clone or combine

    Either clone a flow with the extra metric as trigger, or build a segment of people with either metric and trigger the flow on joining the segment.

  3. Prevent double emails

    Add a filter to the cloned flow that skips people who had the native metric in the last day, or the other way around. Klaviyo does not remove duplicates between differently named metrics for you.

  4. Compare coverage

    After a few weeks, compare how many people each flow reached and what each earned.

How ROASaurus works with Klaviyo

ROASaurus does not replace Klaviyo's Shopify integration. It adds three things next to it:

DirectionWhatNeeds
ROASaurus → KlaviyoCheckout booster: shoppers Klaviyo does not know yet are identified at Shopify checkout, with Viewed Product and Added to Cart per cart line and Started Checkout, as API metricsPublic API key (site ID) and the ROASaurus checkout pixel; Shopify only; follows your consent setting
ROASaurus → KlaviyoAudiences kept in Klaviyo lists every day, with profile properties such as segment, revenue, predicted 12-month LTV and last orderConnect with Klaviyo, or a private API key with lists and profiles write access
Klaviyo → ROASaurusCampaign and flow results next to ROASaurus's own click-based orders, contribution margin and profit after Klaviyo's costConnect with Klaviyo
Klaviyo email clicks also count as the email channel in ROASaurus attribution.

Marketing › Email & SMS shows each Klaviyo campaign and flow as Klaviyo reports it and as ROASaurus measures it: orders whose journey has a Klaviyo click, revenue after refunds, contribution margin, new customers and profit after Klaviyo's monthly cost. The Klaviyo view adds list growth and list sizes. See the Klaviyo integration and the Shopify setup guide for the steps.

Before a busy season, run the BFCM tracking checklist to check that orders reach every destination. For how AI tools use your store data, see AI for ecommerce and AI visibility.

Sources

  1. Klaviyo Help Center: Shopify data reference
  2. Klaviyo Help Center: Getting started with Shopify
  3. Klaviyo Help Center: How to enable onsite tracking for Shopify
  4. Klaviyo Help Center: Understand Klaviyo's anonymous visitor activity backfill

In ROASaurus

Keep reading

MarketingBFCM tracking checklist: can you trust your ad results?A Black Friday tracking checklist: test a real purchase, find duplicate conversions, choose which orders count, check consent and judge ads on profit.MarketingKlaviyo abandoned cart flows: reach more of your shoppersWhy Klaviyo abandoned cart flows miss Shopify shoppers: how Klaviyo decides who gets an email, how to measure the gap and how to close it safely.MarketingA Shopify blog that ranks: SEO steps and blog typesHow to get a Shopify blog ranking on Google and cited by AI search: keywords, search intent, on-page and technical SEO, internal links and five blog types.

FAQ

Questions, answered

More answers in the FAQ and the help center.

How does Klaviyo get data from Shopify?

It syncs orders and customers from Shopify in real time, records Checkout Started from the checkout, and tracks storefront events for identified visitors through Shopify pixel tracking and its own app embed.

Why does Klaviyo show fewer Added to Cart events than Shopify shows cart activity?

Klaviyo only records Added to Cart for visitors it has identified, and only with consent where it applies. Anonymous cart adds create no event.

What do I need before connecting Klaviyo to Shopify?

A Klaviyo account, Shopify access with permission to install apps, your myshopify.com address, a list for new subscribers, and your consent banner set up with Shopify's customer privacy settings.

Does Klaviyo track partial refunds from Shopify?

No. Klaviyo's Refunded Order event is tracked only when an order is refunded in full, and Klaviyo does not update events after the first sync.

Do I need the Klaviyo app embed if Shopify is connected?

Yes, for Viewed Product and Active on Site from Klaviyo's onsite tracking. Shopify-branded onsite events also need Track behavioral events turned on.

Every sale, traced to the ad that earned it

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