Klaviyo + Shopify Integration Guide (2026): Setup, Sync & Best Practices
Step-by-step 2026 guide to connecting Klaviyo with Shopify: install the app, sync data, set up web tracking, key flows, and fix the most common integration errors.
Klaviyo + Shopify Integration Guide (2026): Setup, Sync & Best Practices
Klaviyo and Shopify are the default pairing for serious eCommerce email and SMS marketing — and for good reason. The integration is native, two-way, and pushes far more data into Klaviyo than a generic ESP connection ever could. Done right, it turns every Shopify event (viewed product, started checkout, placed order, refunded) into a trigger you can market against.
Done wrong, you get duplicate profiles, missing revenue attribution, broken abandoned-cart flows, and a bill that grows faster than your list.
This guide walks through the full 2026 setup — from installing the app to syncing historical data, enabling web tracking, and building the flows that actually make the integration pay for itself. It's written for store owners and marketers who want it done correctly the first time, not a marketing brochure.
Table of Contents
- Why the Klaviyo–Shopify Integration Matters
- Before You Start: Prerequisites & Costs
- Step-by-Step: Connecting Klaviyo to Shopify
- What Data Actually Syncs (and What Doesn't)
- Setting Up Onsite Web Tracking
- Adding Klaviyo Forms & the Onsite Snippet
- The Core Flows to Build First
- Common Integration Errors & How to Fix Them
- Klaviyo–Shopify Best Practices for 2026
- When to Bring in a Specialist
1. Why the Klaviyo–Shopify Integration Matters
Klaviyo was built for eCommerce, and its Shopify integration is the reason. Unlike a generic email tool that only knows a contact's email address and maybe a first name, the Shopify connection streams behavioral and transactional data straight into each customer profile:
- Every order, refund, and fulfillment
- Products viewed and added to cart
- Checkout started (the backbone of abandoned-cart recovery)
- Customer lifetime value, order count, and average order value
- Product catalog data for dynamic recommendations
That depth is what lets you segment on "purchased more than twice in the last 90 days" or "viewed a product over $100 but never bought," then trigger automated messages off those events. The Klaviyo app on the Shopify App Store carries a 4.7-star rating across roughly 3,000 reviews and is free to install — you pay Klaviyo based on your profile count and sends, billed separately from your Shopify invoice.
If you want a refresher on how that billing works, see our Klaviyo pricing guide for 2026.
2. Before You Start: Prerequisites & Costs
You'll need:
- An active Shopify store (any plan, including Shopify Basic).
- A Klaviyo account. The free tier covers up to 500 profiles and 5,000 email sends per month, which is plenty to test the setup.
- Admin access to both platforms. Connecting requires Shopify admin permissions to approve the app's data scopes.
A note on cost
The app is free, but Klaviyo bills on your total billable profiles — not just people you email. When you sync historical Shopify customers, every one of them becomes a profile. If you have 40,000 past customers, you may jump a pricing tier the moment you connect. This is the single most common surprise for first-time integrators, so plan for it. You can suppress or exclude non-consented profiles to control the count (more on that below).
3. Step-by-Step: Connecting Klaviyo to Shopify
The integration installs from either side; installing from Shopify is the cleaner path in 2026 because it auto-approves the data scopes.
Step 1 — Install the app
- Go to the Shopify App Store and search for "Klaviyo: Email Marketing & SMS."
- Click Install and approve the requested permissions. Shopify will ask you to grant Klaviyo access to customers, orders, products, and checkout data — all required for the integration to function.
Step 2 — Connect or create your Klaviyo account
After install, Shopify redirects you to Klaviyo. Log in to your existing account or create one. If your business operates multiple Shopify stores, connect each store to the correct Klaviyo account — do not merge separate storefronts into one Klaviyo account unless you genuinely want a shared list.
Step 3 — Configure the sync settings
Klaviyo will ask how to handle the initial import:
- Sync your customers — pulls in historical customer records.
- Consent handling — decide whether imported customers are marked as subscribed. Only import subscribed status for customers who genuinely opted in. Importing non-consented contacts as "subscribed" is a deliverability and compliance risk. When in doubt, import them as profiles but leave email consent off.
Step 4 — Confirm the connection
Once connected, Klaviyo begins syncing. In your Klaviyo account, go to Settings → Integrations → Shopify to confirm the status shows connected and data is flowing. Historical sync can take anywhere from a few minutes to several hours depending on store size.
4. What Data Actually Syncs (and What Doesn't)
Understanding the data model saves you hours of confusion later.
Syncs automatically (real-time, ongoing)
| Data | Klaviyo metric / property | |------|---------------------------| | Order placed | Placed Order event | | Order fulfilled | Fulfilled Order event | | Order refunded / cancelled | Refunded Order / Cancelled Order | | Checkout started | Checkout Started / Started Checkout | | Customer profile fields | Email, name, address, order history, LTV | | Product catalog | Synced for dynamic product blocks |
Requires the onsite snippet (see next section)
| Data | Klaviyo metric | |------|----------------| | Product page views | Viewed Product | | Add to cart (onsite) | Added to Cart (via Active on Site tracking) | | Anonymous browsing tied to a known profile | Onsite behavior |
The distinction matters: Started Checkout syncs through the server-side integration, but Viewed Product only fires if the onsite JavaScript snippet (Klaviyo's klaviyo.js / Active on Site) is installed and firing. A browse-abandonment flow with no snippet will never trigger.
Doesn't sync
- Draft orders and POS transactions can behave inconsistently depending on your setup — test before relying on them.
- Historical events (not just customers) are generally not backfilled beyond a limited window. Flows only act on events that occur after connection, so don't expect an abandoned-cart flow to email people who abandoned last month.
5. Setting Up Onsite Web Tracking
Onsite tracking (Klaviyo calls it Active on Site) is what powers browse-abandonment and real-time onsite behavior.
On most modern Shopify themes using the Klaviyo app, the tracking snippet is injected automatically when you connect. To verify:
- Open your storefront in a browser.
- Open developer tools → Network tab, and look for calls to
klaviyo.com(specifically theidentifyandtrackendpoints), or check thatwindow._learnq/ the Klaviyo object exists in the console. - Browse a product as a known subscriber (click through from a Klaviyo email so the profile is identified), then check that a Viewed Product event appears on your profile in Klaviyo within a minute or two.
If it's not firing, you may need to enable web tracking inside the Shopify integration settings in Klaviyo, or manually add the Klaviyo onsite snippet to your theme's theme.liquid before the closing </head> tag. Themes built with heavy custom code or headless (Hydrogen) setups almost always need manual snippet placement and a developer.
6. Adding Klaviyo Forms & the Onsite Snippet
Klaviyo sign-up forms (popups, flyouts, embeds) are the primary way you grow the list. On a standard Shopify theme:
- Forms display automatically once the onsite snippet is active — you build and publish them in Klaviyo's Sign-up Forms editor, no theme edits required.
- For embedded forms (a form that sits inline in a page rather than as a popup), you place a small embed block or the form ID into the page where you want it.
Best practice for 2026: run a two-step popup that captures email first, then offers SMS opt-in on the second step. This maximizes email capture while still building an SMS list with proper consent — and it keeps your SMS opt-ins clean for compliance.
7. The Core Flows to Build First
Once data is flowing, the integration is only as valuable as the automation on top of it. Build these in order — they typically drive the majority of flow revenue for a Shopify store:
- Welcome / Sign-up flow — triggered when someone joins a list via a form. Deliver the promised incentive, introduce the brand, and set expectations.
- Abandoned Checkout flow — triggered on Checkout Started with no matching Placed Order. This is usually the single highest-revenue automation.
- Browse Abandonment flow — triggered on Viewed Product with no add-to-cart or purchase. Requires the onsite snippet.
- Post-Purchase flow — triggered on Placed Order: shipping expectations, cross-sell, review request, and education to reduce support tickets.
- Win-back flow — triggered by a lapse in purchase behavior (e.g., no order in X days based on your typical purchase cycle).
For deeper flow strategy, see our guide to the best Klaviyo flows for eCommerce and the abandoned cart flow guide.
8. Common Integration Errors & How to Fix Them
Duplicate profiles. Usually caused by connecting a store to a Klaviyo account that already had contacts imported another way (a CSV, a second integration). Klaviyo dedupes on email, so the fix is ensuring email is the consistent identifier. Avoid importing the same list twice.
"Started Checkout" not firing. Check that the Shopify integration is fully connected and that you're testing with a real checkout, not a draft order. Some third-party checkout apps or heavily customized checkouts can suppress the event.
"Viewed Product" not firing. Almost always a missing or blocked onsite snippet. Verify Active on Site tracking (Section 5). Ad blockers and consent-management platforms (cookie banners set to block until consent) can also prevent the snippet from loading.
Revenue not attributed. If your flow and campaign revenue looks suspiciously low, confirm the Placed Order metric is syncing and that your attribution window in Klaviyo matches how you want to credit conversions. A broken order sync zeroes out attributed revenue.
Profile count exploded after connecting. Expected behavior — every historical customer became a profile. Suppress non-consented and long-inactive profiles to manage your billable count. This is the most common cause of a surprise Klaviyo bill.
Sync stuck or "disconnected." Re-authenticate the integration from Settings → Integrations → Shopify. If Shopify permissions changed or the app was reinstalled, the OAuth connection may need refreshing.
9. Klaviyo–Shopify Best Practices for 2026
- Import consent honestly. Never mass-import old customers as "subscribed." It tanks deliverability and creates compliance exposure. Grow consent through forms and post-purchase opt-ins.
- Watch your billable profile count. Set a recurring list-cleaning cadence: suppress non-engaged profiles quarterly. This directly controls cost.
- Segment before you send. The whole point of the integration is data. Use it — segment on purchase behavior, LTV, and engagement rather than blasting the full list.
- Test flows with real events. Trigger a genuine checkout and product view to confirm the plumbing works end to end before going live.
- Keep SMS consent clean. Two-step forms and clear opt-in language protect you and improve list quality.
- Document your setup. Note which flows are live, which metrics they trigger on, and your attribution window. Future-you (or your agency) will thank you.
10. When to Bring in a Specialist
The basic connection takes fifteen minutes. Getting attribution right, building high-converting flows, handling a headless or heavily customized Shopify theme, and cleaning up a messy historical import is where most brands lose weeks — and revenue.
If you're on a custom or Hydrogen storefront, migrating from another ESP, or your flows just aren't converting, it's usually worth bringing in a certified Klaviyo partner rather than burning cycles guessing.
You can find vetted, specialist Klaviyo agencies — pre-screened for real eCommerce and retention experience — in our directory. It's the fastest way to shortlist a partner who has done this exact integration dozens of times.
Final Word
The Klaviyo–Shopify integration is the most powerful, data-rich setup available to a Shopify merchant — but its power comes from the data you feed it and the flows you build on top. Install it correctly, guard your profile count, respect consent, and prioritize the five core flows. Do that, and the integration pays for itself many times over.
Ready to level up? Browse KlaviyoDirectory to connect with experts who can audit your setup and build the flows that actually move revenue.
Ready to find your perfect Klaviyo agency?
Browse the directory →Don't have Klaviyo yet?
The #1 email & SMS platform for e-commerce. Start free and scale as you grow.