Overview
Connecting Klaviyo to Lasso enables several things:
Customer data sync — Lasso syncs customer profile data to Klaviyo when a checkout begins.
Abandoned checkout flows — Lasso fires a Lasso - Checkout Started metric in Klaviyo the moment a customer enters their email at checkout, allowing you to send recovery emails earlier than Shopify's native trigger.
Prerequisites
Before you begin, make sure you have:
A Klaviyo account at klaviyo.com
Access to Klaviyo Settings to create a Private API Key
An existing Abandoned Checkout flow in Klaviyo (needed for Part 2 — the flow setup)
Part 1: API Key Setup
The instructions below mirror exactly what is shown on the Klaviyo integration page inside your Lasso dashboard.
The Klaviyo integration page in Lasso — follow the API Key Setup Instructions on the left and enter your credentials on the right.
Step 1 Log In to Klaviyo and Navigate to Settings
Log in to your Klaviyo account and navigate to Settings in the bottom left corner.
Click on API Keys under the Account section.
Step 2 Create a Private API Key
In the Private API Keys section, click Create Private API Key.
Give your key a descriptive name — e.g. "Lasso Checkout Integration".
For the key type, select Full Access Key to ensure all necessary permissions are granted.
Click Create to generate your new API key.
Copy the API key immediately and paste it into the field on the right in Lasso. Note: You won't be able to view the full key again after leaving this page.
Klaviyo → Settings → API Keys: create a Private API Key with Full Access Key type. Copy it immediately before closing the dialog.
⚠️ Copy the key before closing Klaviyo only shows the full Private API Key once. After you navigate away from the page, you will not be able to view it again. Copy it right away and paste it into the Klaviyo Private API Key field in Lasso before closing the dialog. |
Step 3 Enter Your API Key in Lasso
Paste your Private API Key into the Klaviyo Private API Key field in Lasso.
Optionally, enter your Newsletter List ID if you want customers who enter their email at checkout to be automatically added to a Klaviyo list.
Click Test Integration to verify the connection.
Click Save Configuration to go live.
✓ Once connected Lasso automatically creates a Lasso - Checkout Started metric in your Klaviyo account. This metric fires immediately when a customer enters their email address on the checkout page. |
Part 2: Setting Up Your Abandoned Checkout Flow
To send abandoned checkout emails through Lasso, you need a flow triggered by the Lasso - Checkout Started event. The easiest way is to clone your existing Shopify abandoned checkout flow.
Step 1: Clone Your Existing Flow
In Klaviyo, go to Flows from the left navigation menu.
Find your existing abandoned checkout flow (usually named "Abandoned Checkout" or similar).
Click on the flow to open it, then click the three dots menu in the top right corner.
Select Clone to create a copy of the flow.
Rename the cloned flow to something like "Lasso - Abandoned Checkout" so you can easily identify it.
Step 2: Change the Flow Trigger
In your newly cloned flow, click on the Trigger block at the top of the flow (this is typically set to "Checkout Started" from Shopify).
In the trigger settings panel on the left, click on the current metric to change it.
Search for and select Lasso - Checkout Started as the new trigger metric.
Keep your existing time delays and filters — these control when abandoned checkout emails are sent (e.g., 4 hours after checkout started).
Klaviyo Flows: the original Abandoned Checkout flow with a Shopify trigger (left) alongside the cloned Lasso - Abandoned Checkout flow with a Lasso trigger (centre). Update the cloned flow's trigger to Lasso - Checkout Started, then publish it.
Step 3: Update Email Content (Optional)
Review your email templates to ensure the checkout recovery links work correctly.
For the "Return to Checkout" button URL, use this dynamic link format:
https://YourStoreCheckoutDomainUrl/checkout?sid={{ event.session_id }}Dynamic session link This URL uses the |
💡 Auto-apply a discount code Add |
Beyond the recovery link, every Lasso - Checkout Started event carries the full customer and cart context below. Reference any of these values in your email or SMS content, subject lines, and flow filters — the same way you use the checkout URL above.
Checkout Links
A ready-made alternative to the manual URL above — drop it straight into your "Return to Checkout" button.
Field | Description |
| Ready-made direct link back to the customer's checkout — use on your main CTA button |
| Same destination as the recovery URL (alternate field) |
<a href="{{ event.checkout_recovery_url }}">Complete your order</a>Totals & Pricing
All amounts are in major currency units (e.g. dollars). Use them in copy or as flow-filter thresholds.
Field | Description |
| Cart total — Klaviyo uses this as the event's monetary value for revenue reporting |
| Order total |
| Pre-discount subtotal |
| Discount amount applied |
| Total savings |
| Shipping cost |
| Tax amount |
| Currency code (e.g. USD) |
| Promo/coupon code applied — useful for "you saved with X" copy or conditional splits |
{% if event.promo_code %}You saved ${{ event.discount_total }} with {{ event.promo_code }}{% endif %}Cart Contents
Field | Description |
| Total quantity across all items — great for subject lines ("You left 3 items behind") |
| Flat array of product names — handy for quick subject-line interpolation |
| Full line-item array — loop over this to render the cart |
Each entry in event.cart_items contains:
Field | Description |
| Product name |
| SKU |
| Unit price (reflects the discount if one was applied) |
| Quantity |
| Product image — render in an |
| Product link (currently points to checkout) |
| Shopify numeric IDs |
Loop over the line items to render the cart with images, quantities, and prices:
{% for item in event.cart_items %} <img src="{{ item.image_url }}" width="80"/> {{ item.name }} — Qty {{ item.quantity }} — ${{ item.price }} {% endfor %}Step 4: Publish Your Flow
Once you have updated the trigger, click Review and Turn On in the top right corner.
Review the flow summary, then click Turn On to make your flow live.
Your new flow will now trigger based on Lasso checkout events instead of Shopify's native checkout.
💡 Tip: Disable Your Old Flow When you connect or reconnect to Klaviyo, Lasso automatically creates the following metric in your Klaviyo account: • Lasso - Checkout Started — We fire this event immediately when a customer enters their email address on the checkout page. This helps you track when customers begin the checkout process and allows you to engage with them in real time. In your Klaviyo email flows, add a dynamic checkout button URL using this format to direct customers back to their checkout session: https://YourStoreCheckoutDomainUrl/checkout?sid={{ event.session_id }}Once your Lasso abandoned checkout flow is live, consider pausing or disabling your original Shopify-triggered abandoned checkout flow to avoid sending duplicate emails to customers. |
Subscription events
If your store sells subscriptions, Lasso can send subscription events to Klaviyo for retention, win-back and failed-payment flows. They're off by default.
In Lasso, go to Integrations → Klaviyo.
Under Subscription Lifecycle Events, switch to Enabled and turn on the events you want. If you enable the section without picking any, all of them are turned on.
Save, then build flows in Klaviyo on the matching metrics:
Subscription Created: Lasso - Subscription Created
Subscription Rebill: Lasso - Subscription Rebill
Cancellation Requested: Lasso - Subscription Cancellation Requested
Subscription Canceled: Lasso - Subscription Canceled
Subscription Paused: Lasso - Subscription Paused
Subscription Payment Failed: Lasso - Subscription Payment Failed
Subscription Auto-Paused: Lasso - Subscription Auto Paused. This event only appears once auto-pause is turned on under Subscriptions → Settings.
Each metric shows up in Klaviyo the first time Lasso sends that event.
Setting Up Customer Portal Magic Links
Applies to the subscription customer portal. These setup steps also appear on the Klaviyo integration page in your Lasso dashboard when subscriptions are enabled for your store.
To send customer portal magic link emails through Lasso, create a Klaviyo flow triggered by the Lasso - Customer Portal Access event, which fires whenever an existing customer requests access to your customer portal.
Step 1 — Create Your Flow
In Klaviyo, go to Flows from the left nav menu.
Click Create Flow to start a new flow.
Name it something like "Lasso - Customer Portal Magic Link" so it's easy to identify.
Step 2 — Change the Flow Trigger
In the new flow, click the Trigger block at the top.
In the trigger settings panel on the left, click the current metric to change it.
Search for and select Lasso - Customer Portal Access as the new trigger metric.
If the metric doesn't appear yet, request a magic link from your customer portal login page using an existing customer email, then return to Klaviyo and search again.
Step 3 — Update Email Content
Add an email message to the flow with copy explaining that the customer can access their customer portal.
For the "Manage Subscription" / "Access Customer Portal" button URL, use this dynamic link format:
<a href="{{ event.magic_link_url }}">Manage your subscription</a>Step 4 — Publish Your Flow
Click Review and Turn On in the top right.
Review the flow summary, then click Turn On to make it live.
Test by requesting access from your customer portal login page with an existing customer email.
Available magic link fields:
Field | Description |
| One-time customer portal login link — use as the main CTA URL. |
| Store name sent with the event, for personalized copy. |
| Lasso store ID associated with the access request. |
IntentWave events
If you use IntentWave, it sends its own cart and checkout events (IW Add to Cart, IW Started Checkout, IW Abandoned Checkout) to your Klaviyo account for abandoned-cart and checkout targeting, including anonymous shoppers IntentWave can identify. See the IntentWave article for setup and details.
Troubleshooting
(a) API Key Not Accepted
Make sure you selected Full Access Key when creating the key in Klaviyo.
Confirm you copied the complete key — truncated keys will fail.
If the key is lost, generate a new one in Klaviyo Settings → API Keys and update it in Lasso.
(b) Lasso - Checkout Started Metric Not Appearing in Klaviyo
Ensure you have integrated your Klaviyo account with Lasso. This Lasso metric will not appear in Klaviyo until you have given us the Klaviyo API key and have saved the integration on our end
Check Klaviyo → Analytics → Metrics to confirm the metric exists.
(c) Abandoned Checkout Emails Not Sending
Confirm the cloned flow's trigger is Lasso - Checkout Started, not Shopify's Checkout Started.
Make sure the cloned flow is set to Live, not Draft.
Verify customers are reaching the email entry step on your Lasso checkout.
(d) Customers Receiving Duplicate Emails
This happens when both the original Shopify-triggered flow and the new Lasso-triggered flow are running simultaneously. Pause or disable your original Shopify abandoned checkout flow.
(e) Recovery Link Opens the Wrong Checkout / a Different Store's Branding
If your "Return to Checkout" button sends customers to a checkout with the wrong logo or branding, check the link in the sent email. If the URL contains sid={{event.session_id}} (or its encoded form sid=) instead of a real session ID, the Klaviyo merge tag didn't render.
The most common cause is a missing # before the merge tag. The session ID only renders when the tag is written as {{ event.session_id }}. Without the #, Klaviyo sends the tag as literal text, the session can't be matched, and the checkout falls back to a default version — which is why the branding looks wrong.
Use this exact format for the button URL:
https://YourStoreCheckoutDomainUrl/checkout?sid={{ event.session_id }}Replace YourStoreCheckoutDomainUrl with your store's checkout domain. As an alternative, you can use the ready-made {{ event.checkout_recovery_url }} field, which builds the full link for you.
Frequently Asked Questions
(a) What is the Lasso - Checkout Started metric?
This is a custom metric Lasso automatically creates in your Klaviyo account when you connect the integration. It fires the moment a customer enters their email on the Lasso checkout page — earlier than Shopify's native Checkout Started event, giving you a longer window to recover abandoned checkouts.
(b) What is the Newsletter List ID for?
If provided, Lasso automatically adds customers who enter their email at checkout to that Klaviyo list. If left empty, customer data is still synced to Klaviyo profiles but not added to a specific list.
(c) Do I need to set up the abandoned checkout flow?
No. If you only want to sync customer data to Klaviyo, connecting your API key is sufficient. The flow setup is only needed if you want to send abandoned checkout recovery emails triggered by Lasso checkout events.
(d) Can I edit my original flow instead of cloning it?
You can, but cloning is recommended. It preserves your original Shopify-triggered flow as a backup while you build and test the Lasso version. Once your Lasso flow is live and verified, you can safely pause the original.
(e) Does the Klaviyo integration work with SMS abandoned checkout flows?
No. The Lasso–Klaviyo integration only opts customers into email marketing — it does not collect or pass SMS marketing consent to Klaviyo. Because SMS consent isn't sent, SMS flows won't send texts to customers from the Lasso - Checkout Started event. The integration supports email abandoned checkout flows only; SMS marketing isn't supported at this time.
(f) Can I automatically apply a discount code from my Klaviyo or SMS flow at checkout?
Yes. Add discount=CODE to the checkout link in your message, replacing CODE with your Shopify discount code. When the customer opens the link, the code is applied at Lasso checkout automatically — they don't need to enter it themselves. Use &discount=CODE if the link already has parameters (like the sid recovery link), or ?discount=CODE if it doesn't. For example:
https://YourStoreCheckoutDomainUrl/checkout?sid={{ event.session_id }}&discount=CODEBefore using discount links, make sure promo codes are turned on: go to Flows → Payment Pages → Edit → Configure → Promotions & Incentives and toggle on Enable Promo Codes. This is set per payment page, so turn it on for each page (including every page in an A/B test). If it's off, the promo code box is hidden at checkout.
Codes customers apply in your store's cart drawer also carry over into checkout automatically. See "How Discount Codes Work at Lasso Checkout" for which discount conditions Lasso enforces.
