- 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
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?
| Event | Recorded when | Notes |
|---|---|---|
| Placed Order | An order is created in Shopify | All items, prices, discounts; the base for revenue and the Placed Order filter in flows |
| Ordered Product | For each item in a placed order | One event per line item, with variant details |
| Fulfilled Order, Fulfilled Partial Order | An order is fulfilled in full or in part | For post-purchase timing |
| Cancelled Order | An order is cancelled before fulfilment | |
| Refunded Order | An order is refunded in full | Partial refunds do not trigger it |
| Confirmed Shipment, Marked Out for Delivery, Delivered Shipment | Shopify gets the carrier update | Only for carriers that provide these updates to Shopify |
| Checkout Started | Shopify sends checkout details with a valid email or phone | All cart items and a checkout URL that rebuilds the cart |
| Added to Cart | An identified visitor adds an item | Shopify-branded; one product per event; needs Track behavioral events |
| Viewed Product | An identified visitor views a product | From the app embed (gear icon) or Shopify pixel tracking (Shopify icon) |
| Viewed Collection, Submitted Search | An identified visitor views a collection or searches | Shopify-branded; need Track behavioral events |
| Active on Site | An identified visitor is on the site | From the app embed; carries the page URL and UTM tags |
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
_kxparameter), - 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.
- 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.
- 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.
- 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.
- 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.
- Turn off Shopify's own abandoned checkout emails
Before your Klaviyo recovery flow goes live, so shoppers do not get two reminders.
- 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
- Trigger on the right metric. Check the source icon and that the metric actually has recent events.
- Exclude buyers. Add a Placed Order filter so people who already bought drop out of abandonment flows.
- Separate cart and checkout flows. Run Added to Cart and Checkout Started flows apart, and remove people who started checkout from the cart flow.
- Use the full cart where it matters. Build cart-value or category rules on Checkout Started, which has every item.
- Test with real profiles. Place test checkouts on desktop and mobile, with consent accepted and declined.
- 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:
- Leave native flows on native metrics
Your existing flows keep working as before.
- 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.
- 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.
- 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:
| Direction | What | Needs |
|---|---|---|
| ROASaurus → Klaviyo | Checkout 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 metrics | Public API key (site ID) and the ROASaurus checkout pixel; Shopify only; follows your consent setting |
| ROASaurus → Klaviyo | Audiences kept in Klaviyo lists every day, with profile properties such as segment, revenue, predicted 12-month LTV and last order | Connect with Klaviyo, or a private API key with lists and profiles write access |
| Klaviyo → ROASaurus | Campaign and flow results next to ROASaurus's own click-based orders, contribution margin and profit after Klaviyo's cost | Connect with Klaviyo |
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
- Klaviyo Help Center: Shopify data reference
- Klaviyo Help Center: Getting started with Shopify
- Klaviyo Help Center: How to enable onsite tracking for Shopify
- Klaviyo Help Center: Understand Klaviyo's anonymous visitor activity backfill