Klaviyo + Shopify Integration: The Ultimate Guide

If retention is the engine, Klaviyo on Shopify is the drivetrain. This guide shows operators how to connect the systems, model the data, and ship revenue‑generating automations—without wrecking deliverability, consent, or your roadmap.


Table of Contents

  1. Why Klaviyo + Shopify is the retention stack to beat
  2. Prereqs & architecture at a glance
  3. Install & connect: clean integration without the gremlins
  4. Data model: events, properties, and naming that scale
  5. Consent: email & SMS the lawful way (global readiness)
  6. Forms & onsite capture: speed, brand, and data hygiene
  7. Flows that print money (and how to build them)
  8. Segments & predictive: who to talk to and when
  9. Discounts & deep links: auto‑apply, carts, and UTMs
  10. Shopify Markets, languages & currencies
  11. Deliverability & domain setup: protect your reputation
  12. QA & launch checklist (don’t skip this)
  13. Measurement & reporting: what leadership cares about
  14. Troubleshooting guide: 20 common issues, fast fixes
  15. Roadmap: 30/60/90 for a best‑in‑class stack
  16. Work with Sticky Digital

1) Why Klaviyo + Shopify is the retention stack to beat

Klaviyo sits natively on Shopify’s event stream and product/catalog structure. That means your lifecycle programs run on near real‑time data instead of stale batches. As a retention‑first agency, we care about what compounds: clean segmentation, high‑integrity consent, and automations that respect where the customer is in their journey. Klaviyo checks all three.

Before we get tactical, skim how our team runs retention programs end‑to‑end: Services and Inside Sticky Digital.

2) Prereqs & architecture at a glance

Accounts & access

  • Shopify admin access (owner or staff with app + checkout settings)
  • Klaviyo admin (Email + SMS if you plan to text)
  • Domain/DNS access for sending domain setup (SPF/DKIM)

Architecture sketch

  • Data in: Shopify events (Viewed Product, Added to Cart, Checkout Started, Placed Order), product/catalog sync, and onsite form submissions.
  • Brain: Klaviyo profiles, segments, predictive fields, templates, flows.
  • Data out: Email/SMS sends, onsite forms, webhooks/integrations to your helpdesk/loyalty/subscription tools.

3) Install & connect: clean integration without the gremlins

  1. Install the Klaviyo app from Shopify’s App Store and connect to your Klaviyo account.
  2. Enable web tracking (active on site) and catalog sync. Verify that product titles, images, URLs, and variant IDs populate.
  3. Sync historical data: import past orders/contacts so cohorts and predictive scores have signal.
  4. Install onsite forms via theme app blocks or Klaviyo’s embed snippet.
  5. Connect SMS (optional): claim numbers/senders and enable checkout opt‑in.

Tip: Keep a staging property (e.g., qa_only = true) on seed profiles so you can target or suppress test sends easily.

4) Data model: events, properties, and naming that scale

Core Shopify → Klaviyo events

  • Viewed Product (PDP views with product ID)
  • Added to Cart (line items, price, variant)
  • Checkout Started (cart payload, discounts applied)
  • Placed Order (order totals, discounts, shipping/billing country)

Essential profile properties

  • first_name, email, phone_number
  • language_preference (e.g., en, es) for multilingual flows
  • sms_consent + country metadata
  • subscriber_tier (for loyalty/subscription synergy)

Deep dives on multilingual modeling and flows: Multilingual Klaviyo: Operator’s Guide and Klaviyo June 2025 Updates.

Growth without risk. Capture how consent was given (checkbox at checkout, form, 2‑step), where (URL/domain), when (timestamp), and jurisdiction (country). Store it on the profile so segments/flows can route legally.

  • Email: Shopify checkout checkbox + Klaviyo forms. Log the source.
  • SMS: Enable checkout SMS opt‑in; comply with local quiet hours and sender rules.

Our operating posture and why retention safety matters: About Sticky Digital.

6) Forms & onsite capture: speed, brand, and data hygiene

  1. Use theme app blocks for forms where possible (faster, less brittle).
  2. Collect only what you’ll use now (email, phone optional, language if multilingual, one interest).
  3. Use 2‑step forms: email first, enrich on confirmation page for higher completion.
  4. Pass language/market based on URL or selector; set language_preference.

Grab plug‑and‑play building blocks in our BFCM Retention Prep Checklist and broader Thank‑You Page Guide.

7) Flows that print money (and how to build them)

Must‑have flows

  • Welcome (email + SMS): value, proof, and first purchase.
  • Browse Abandon: gentle nudge and discovery.
  • Cart/Checkout Abandon: reminder → policy clarity → optional time‑boxed nudge.
  • Post‑Purchase: onboarding, education, review, and cross‑sell.
  • Win‑Back: reactive + proactive re‑engagement.
  • Replenishment/Subscription: cadence matched to product truth.

Build pattern (dynamic content)

{% set lang = person|lookup:'language_preference'|default:person|lookup:'$locale_language'|default:'en' %}
{% set t = {
  'en': {'cta':'Shop now','policy':'Free returns, fast shipping'},
  'es': {'cta':'Comprar ahora','policy':'Devoluciones gratis, envío rápido'}
} %}
<p>{{ t[lang].policy }}</p>
<a href="https://yourstore.com{% if lang == 'es' %}/es{% endif %}/collections/new" class="btn">{{ t[lang].cta }}</a>

How we test responsibly (and ship weekly): A/B Testing Your BFCM Offers.

8) Segments & predictive: who to talk to and when

  • Engaged 90‑day: received & clicked in last 90 days; use as your deliverability core.
  • High‑value cohort: top 20% by predicted LTV; prioritize early‑access.
  • At‑risk: high predicted churn or long time since purchase → prevention series.
  • Language routes: ES/EN with fallbacks from locale.

Strategy notes on where Klaviyo is heading as a B2C CRM: Feb 2025, June 2025, and Klaviyo Boston.

9) Discounts & deep links: auto‑apply, carts, and UTMs

Use Shopify’s discount URL pattern to reduce promo friction and improve conversion tracking.

https://yourstore.com/discount/WELCOME10?redirect=/collections/all&utm_source=klaviyo&utm_medium=email

For SFCC/BigCommerce nuances (and when you can’t auto‑apply), see our integration notes throughout the site’s posts; Shopify remains the cleanest path.

10) Shopify Markets, languages & currencies

Multimarket stores need language‑aware URLs and policy copy. Route by language property and keep a single flow.

{% set lang = person|lookup:'language_preference'|default:person|lookup:'$locale_language'|default:'en' %}
https://yourstore.com{% if lang == 'es' %}/es{% endif %}/cart

More on language strategy: Multilingual Klaviyo.

11) Deliverability & domain setup: protect your reputation

  • Authenticate sending domain (SPF, DKIM); align from‑domain with your brand.
  • Warm sensibly; send to engaged cohorts first.
  • Keep complaint rate <0.1% and monitor per segment/language path.

If testing promos seasonally, read our BFCM testing playbook to avoid deliverability landmines.

12) QA & launch checklist (don’t skip this)

  • Seed inboxes/phones per market/language (e.g., EN‑US, ES‑MX).
  • Abandon → recover journey works with correct language, currency, and policies.
  • Promo auto‑apply success rate >95% on first click.
  • Post‑purchase education matches product type; no cross‑language leaks.

Use the checklists in our Retention Prep and Thank‑You Page guides.

13) Measurement & reporting: what leadership cares about

  • Revenue per recipient (campaigns, flows) by segment/language.
  • Recovery rate for abandon flows.
  • Subscriber conversion for subscription‑adjacent SKUs.
  • List health: growth rate, engagement, complaint rate.

Browse Case Studies for examples of how we present outcomes, not vanity metrics.

14) Troubleshooting guide: 20 common issues, fast fixes

  1. Products missing in emails → Re‑run catalog sync; verify product availability/visibility.
  2. Flows not triggering → Confirm event name mapping; check flow filter logic.
  3. Discount not applying → Check URL pattern and redirect path; test with clean session.
  4. Language mismatch → Define lang once; block‑level conditions scoped correctly.
  5. SMS quiet hours violated → Gate by recipient country and local time.
  6. Deliverability dip → Tighten segments to engaged; pause lowest‑performing creative.
  7. UTM chaos → Standardize UTMs; consider utm_lang for language.
  8. Checkout domain mismatch → Ensure links use your canonical domain and correct market path.
  9. Predictive fields empty → Allow time and data volume; import historical orders.
  10. Helpdesk not enriched → Use Klaviyo → helpdesk integration to pass profile context.
  11. Loyalty points not reflected → Verify integration, field mapping, and timing of syncs.
  12. Subscription events missing → Connect your subscription app; map events to flows.
  13. Forms double‑submit → Use a single provider per location; avoid overlapping scripts.
  14. Gmail clipping → Keep HTML lean; prefer dictionary pattern over duplicated blocks.
  15. Broken preview text → Set explicit preheaders; localize by language.
  16. Inaccurate attribution → Compare Klaviyo’s attribution with Shopify; align lookback windows.
  17. Slow page → low conversions → Audit Online Store 2.0 apps and scripts; defer non‑critical code.
  18. Policy links wrong for market → Localize returns/shipping help‑center links per market.
  19. Over‑emailing VIPs → Global frequency cap and VIP exceptions; holdouts for incrementality.
  20. Team drift → One owner per flow, documented changes, weekly QA.

15) Roadmap: 30/60/90 for a best‑in‑class stack

Days 0–30: Foundation

  • Install, connect, and authenticate sending domain.
  • Ship Welcome, Browse Abandon, Cart/Checkout Abandon, Post‑Purchase (v1).
  • Stand up core segments (Engaged 90, VIP, At‑Risk, Language paths).
  • Seed profiles & QA; institute weekly ship cadence.

Days 31–60: Optimization

  • A/B test subject framing and CTA placement; add policy clarity blocks.
  • Launch replenishment/subscription flows; refine incentives.
  • Implement preference center; reduce blanket unsubscribes.

Days 61–90: Scale

  • Introduce predictive segments and VIP early‑access programs.
  • Expand multilingual coverage; localize policy copy and URLs.
  • Integrate helpdesk/loyalty/reviews for richer triggers.
  • Publish a quarterly retention report (wins, losses, next tests).

Work with Sticky Digital

If you want a Klaviyo + Shopify setup that’s clean, compliant, and fast to improve, we can help—from audit to implementation to ongoing optimization. Explore our Services, browse recent Case Studies, and get in touch on the Contact page.


Further reading

Back to blog