Gifts

Culture

Reviews

Local Spots

How to Connect Klaviyo with Shopify (2026)

Klaviyo

Klaviyo

★★★★ 4.6
Email Automation Email Marketing

Data-driven email and SMS marketing platform purpose-built for ecommerce brands with predictive analytics and deep integrations.

Full Review
Shopify

Shopify

★★★★ 4.6
Ecommerce Ecommerce Platform

The leading e-commerce platform enabling anyone to start, grow, and manage an online store with built-in payments, shipping, and marketing…

Full Review

Why Connect Shopify and Klaviyo

Klaviyo and Shopify together form the gold standard for ecommerce email and SMS marketing. Klaviyo was built from the ground up to integrate with ecommerce platforms, and Shopify is its primary and deepest integration. This is not a basic contact sync — it is a full data pipeline that brings every customer interaction, browsing session, purchase, and product detail into Klaviyo for hyper-targeted marketing automation.

This integration is the right choice for Shopify merchants who are serious about email and SMS revenue. Klaviyo is used by over 100,000 ecommerce brands, and the majority of them run Shopify stores. If you want to send abandoned cart emails, post-purchase flows, win-back campaigns, product recommendation emails, and segment customers by lifetime value, purchase frequency, or predicted next order date — this is the integration that makes it all possible.

What This Integration Does

  • Full customer data sync: Every Shopify customer profile, including contact information, order history, lifetime value, average order value, and customer tags, syncs to Klaviyo in real-time.
  • Order and product data: Every order including line items, discounts, shipping details, and fulfillment status is synced. Product data including images, descriptions, prices, and variants is imported for use in dynamic email content.
  • On-site behavior tracking: Klaviyo's JavaScript snippet tracks browsing behavior on your Shopify store — viewed products, added to cart, started checkout — enabling triggered flows based on real-time behavior.
  • Abandoned cart and checkout recovery: Detects abandoned carts and checkouts and triggers recovery email or SMS flows.
  • Predictive analytics: Klaviyo uses order history to calculate predicted next order date, predicted lifetime value, churn risk, and other predictive metrics for each customer.
  • Back-in-stock notifications: When a product variant goes from out-of-stock to in-stock in Shopify, Klaviyo can automatically notify customers who signed up for alerts.
  • Coupon code sync: Generate and manage unique Shopify discount codes directly from Klaviyo for use in automated flows and campaigns.

Native Integration vs Third-Party

This is a deep native integration — one of the most comprehensive platform integrations in the email marketing industry. Klaviyo has a dedicated Shopify app in the Shopify App Store, and the integration is maintained as a core product feature by Klaviyo's engineering team. No third-party middleware is needed.

The native integration is so complete that there are very few scenarios where you would need a third-party connector. Potential exceptions include:

  • Multi-platform data merging: If you sell on both Shopify and another platform (like WooCommerce or a marketplace) and need to unify customer data in Klaviyo, you would use Klaviyo's separate integrations for each platform, or use Zapier/Make to bridge unsupported platforms.
  • Custom Shopify app data: If you use custom Shopify apps that generate data not captured by the standard integration (like subscription billing apps or loyalty program apps), you may need to use Klaviyo's API or Zapier to sync that additional data.

For the standard Shopify-Klaviyo use case, the native integration handles everything.

Step-by-Step Setup

Step 1: Create a Klaviyo Account

Sign up at klaviyo.com if you have not already. Klaviyo's free plan allows up to 250 contacts and 500 email sends per month, so you can start without paying. During signup, Klaviyo will ask about your ecommerce platform — select Shopify.

Step 2: Install from the Shopify App Store

In your Shopify admin, go to Apps > Shopify App Store and search for "Klaviyo." Click Add app on the official Klaviyo: Email Marketing & SMS listing. Click Install app and authorize the permissions. Klaviyo requests access to customers, orders, products, draft orders, checkouts, and script tags.

Step 3: Connect Your Klaviyo Account

After installation, you will be prompted to log in to your Klaviyo account (or create one). Select the Klaviyo account to connect to your Shopify store. If you have multiple Shopify stores, each one connects to Klaviyo as a separate integration (Klaviyo supports multi-store setups).

Step 4: Initial Data Sync

Klaviyo will automatically begin importing your historical Shopify data. This includes:

  • All customer profiles
  • All historical orders (typically the last 90 days to full history, depending on your Shopify plan)
  • All products and variants
  • Existing checkout and cart data

For stores with extensive history, this initial sync can take anywhere from a few minutes to several hours. You can monitor progress in Klaviyo > Integrations > Shopify.

Step 5: Enable On-Site Tracking

Klaviyo automatically installs its tracking snippet on your Shopify store during the app installation. Verify this is active by going to Klaviyo > Settings > Setup > Web Tracking. The snippet tracks Active on Site events, Viewed Product events, Added to Cart events, and Started Checkout events. These behavior-based events are critical for triggered flows.

Step 6: Set Up Core Flows

Klaviyo provides pre-built flow templates specifically designed for Shopify stores. Navigate to Flows > Create Flow and browse the Flow Library. The essential flows to set up first are:

  • Welcome Series: Triggered when someone signs up for your email list via a Klaviyo form.
  • Abandoned Cart: Triggered by the Shopify "Checkout Started" event when no purchase follows within a configurable time window.
  • Post-Purchase: Triggered by the Shopify "Placed Order" event.
  • Win-Back: Triggered by a time-based condition when a customer has not purchased within a set period.
  • Browse Abandonment: Triggered when a visitor views a product but does not add to cart or purchase.

Step 7: Create Signup Forms

In Klaviyo, go to Signup Forms and create popups, flyouts, or embedded forms for your Shopify store. Klaviyo forms are installed automatically on your Shopify store through the integration — no code editing required. Configure display triggers (time on site, scroll depth, exit intent) and the list/segment new signups are added to.

Step 8: Enable SMS (Optional)

Klaviyo supports SMS marketing alongside email. In Settings > SMS, set up your SMS sending phone number, compliance settings, and quiet hours. You can add SMS steps to any existing email flow, creating multi-channel automated sequences.

Best Automation Workflows

  1. Abandoned checkout recovery (3-touch): When a checkout is started but not completed, wait 4 hours and send Email 1 — a simple reminder with the cart contents and a direct link back to checkout. Wait 24 hours, send Email 2 — include social proof (reviews, testimonials) for the abandoned products. Wait 48 hours, send Email 3 — offer a small incentive (10% off, free shipping) with a time-limited discount code generated by Klaviyo's Shopify coupon integration. Include a conditional split: if order value is over $200, offer free shipping; if under $200, offer a percentage discount.
  2. Post-purchase upsell flow: After purchase, wait 2 days. Send an email with a dynamic product recommendation block showing items frequently bought together with their purchase. Use Klaviyo's predictive analytics to personalize recommendations. If the customer buys again within 7 days, add them to a "Repeat Buyer" segment. If not, wait 14 days and send a cross-sell email for a different product category.
  3. VIP tier management: Create segments based on lifetime value: Bronze ($0-100), Silver ($100-300), Gold ($300-500), Platinum ($500+). When a customer's lifetime value crosses a tier threshold after a purchase, trigger a congratulations email welcoming them to the new tier with corresponding benefits (exclusive previews, special discount codes, early access to sales).
  4. Win-back flow with sunset: When a customer has not purchased in 60 days, send a "We miss you" email. At 75 days, send a product highlight email with new arrivals. At 90 days, send a "last chance" email with a compelling offer. At 120 days, if still no engagement (no opens or clicks), suppress the profile from regular campaigns to maintain list health and deliverability.
  5. Back-in-stock notification: Set up a "Notify Me" button on out-of-stock product pages using Klaviyo's back-in-stock feature. When the Shopify inventory for that variant is updated to available, Klaviyo automatically sends a notification email to everyone who signed up, with a direct link to purchase before it sells out again.

Data Sync Details

Data Direction Sync Frequency Notes
Customer profiles Shopify to Klaviyo Real-time (webhook) Includes all standard and custom Shopify customer fields
Orders and line items Shopify to Klaviyo Real-time Full order details including discounts, shipping, tax
Products and variants Shopify to Klaviyo Real-time Includes images, prices, descriptions, inventory status
Browsing behavior Shopify to Klaviyo Real-time (JavaScript) Viewed Product, Added to Cart, Started Checkout events
Refunds and cancellations Shopify to Klaviyo Real-time Refund and cancel events tracked as separate metrics
Fulfillment status Shopify to Klaviyo Real-time Fulfilled Order event with tracking details
Discount codes Klaviyo to Shopify On creation Klaviyo generates unique Shopify discount codes for flows
Predictive analytics Calculated in Klaviyo Updated daily Predicted LTV, next order date, churn risk
Consent and subscription status Bi-directional Real-time Email and SMS consent synced between platforms

The Klaviyo-Shopify sync is among the fastest and most complete in the industry. Data flows via Shopify webhooks, meaning updates arrive in Klaviyo within seconds of occurring in Shopify. The historical data import during initial setup covers all available history in your Shopify store.

Common Issues and Troubleshooting

Browse abandonment not triggering

If Viewed Product or Added to Cart events are not appearing in Klaviyo, the on-site tracking snippet may not be loading. This can happen if a theme customization or another Shopify app conflicts with the Klaviyo script. Verify the snippet is present by viewing your store's page source and searching for "klaviyo." If it is missing, reinstall the Klaviyo app or manually add the snippet. Also check that the visitor is identified (has previously submitted their email) — anonymous visitors generate events but cannot be tied to a profile for triggered flows.

Duplicate profiles

Klaviyo creates profiles based on email address. If a customer uses different email addresses (personal vs. work), they will appear as separate profiles. Klaviyo does offer a profile merging feature, but it is manual. For stores with significant duplicate issues, consider using Shopify's customer account system to encourage consistent email usage.

Revenue attribution discrepancies

Klaviyo's revenue attribution uses a model that credits revenue to the last Klaviyo email or SMS clicked before a purchase. If your attribution numbers do not match Shopify's revenue, it is usually because of the attribution window (default is 5 days for email, 1 day for SMS). Adjust these settings in Klaviyo > Settings > Attribution to match your business's typical conversion timeline. Note that Klaviyo's numbers may differ from Google Analytics or Shopify's own reports due to different attribution models.

Emails going to spam

If your Klaviyo emails are landing in spam, it is usually a domain authentication issue rather than an integration problem. Set up SPF, DKIM, and DMARC records for your sending domain in Klaviyo > Settings > Email > Domains. Also review your sending practices — large blasts to unengaged subscribers will hurt deliverability regardless of authentication.

Alternatives

  • Shopify Email: Shopify's built-in email tool. Free for the first 10,000 emails monthly, integrated into the Shopify admin. Lacks automation flows, advanced segmentation, and predictive analytics, but sufficient for stores with simple email needs.
  • ActiveCampaign: Offers a solid Shopify integration with good automation capabilities. Less ecommerce-specific than Klaviyo but includes CRM features that Klaviyo lacks. Better for businesses that need both B2B and B2C marketing capabilities.
  • Omnisend: Ecommerce-focused platform with Shopify integration, email, SMS, and push notifications. More affordable than Klaviyo at most contact tiers and offers a generous free plan.
  • Drip: Another ecommerce-focused email platform with strong Shopify integration. Good automation builder and revenue attribution, positioned as a Klaviyo alternative at a lower price point.
  • Mailchimp: Has a Shopify integration but the relationship between the two companies has been historically rocky. The integration is less deep than Klaviyo's and the platform is not ecommerce-specialized, but it works for basic email campaigns.

Compare Klaviyo vs Shopify side by side »