Skip to main content

How to use Klaviyo in Swapt

Learn how to make the most out of your Klaviyo integration in Swapt

E
Written by Ella Hutnick
Updated over 2 months ago

How to Connect and Launch Your Klaviyo Flow with Swapt

This guide walks you through setting up your Klaviyo integration inside Swapt, connecting your campaign data, and building your automated email flow to reward and re-engage customers.


Step 1: Set Up in Klaviyo

  1. Log in to your Klaviyo account.

  2. Create a list named “Swapt.” This will store all contacts coming through your Swapt campaign. Go to Settings, Consent and click Single opt-in.

💡 Tip: Keep this list dedicated to Swapt submissions so your data stays clean and easy to segment later.


Step 2: Set Up in Swapt

⚙️ Do this after you’ve created your landing pages and finished the rest of your campaign flow.

  1. In Swapt, navigate to your Campaign Flow.

  2. After your Landing Page node, add an “Add to List” node.

  3. Beneath that, add a “Klaviyo Add Event” node.

  4. Configure your event properties depending on the campaign type:

    • product_select{formData.product_select.value}

      • Passes the ASIN (Amazon Standard Identification Number) of the purchased product.

    • product_channel{formData.product_channel}

      • Tracks which channel the shopper came from (e.g., Amazon, Shopify, or TikTok).

    • promotion{formData.promotionalCode.code}

      • Tracks what type of promotion a customer received (e.g., 20% vs. 15% off for A/B testing).

  5. Save your flow before launching.

  6. Launch the flow to test that it works — this will also send the event values into Klaviyo so you can build your email flow around them.


Step 3: Create Your Email Flow in Klaviyo

  1. In Klaviyo, build a new Email Flow.

  2. Select “Submitted Swapt Code” as your trigger.

  3. The purpose of this flow is to offer another chance to leave a review (if they didn’t do so on the success page) and deliver the coupon promised on the landing page.

    💡 Tip: You can do more with this flow by integrating it with your existing welcome series


Step 3.a: Setting Up the Review Button

  • For Amazon reviews:
    Use this link format in your button’s URL field:

    https://www.amazon.com/review/create-review?asin={{ event.product_select.value|default:'' }}

    This dynamically passes the correct ASIN to Amazon’s review form.

  • For Shopify reviews:
    You’ll need to create conditional logic in your Klaviyo email based on the product value (product_select) passed from Swapt.


Step 3.b: Configuring Coupons

  • Shopify Coupons:
    Set them up directly in Swapt and call them using dynamic variables within Klaviyo.

  • Amazon Coupons:

    • Create promotions in Amazon (see Amazon’s Promotions guide).

    • Download and upload the coupon codes into Klaviyo.

    • Call them dynamically in your emails.

  • Swapt-Hosted Coupons:
    A common naming convention for discounts managed inside Swapt is:

    • Property key: promotion

    • Property value: {promotion.promotionalCode.code}

    You can call this variable into your Klaviyo flow by:

    1. Clicking Preview in your Swapt flow.

    2. Scrolling to the Form Properties panel.

    3. Clicking the property to copy the variable directly.


Step 4: Launching Your Flow

Once you are satisfied with your email design, mark your campaign as live and test it with the same email you put the the Swapt Platform flow. You're now ready to retain and convert the customers you've found through Swapt!


Step 5: Funneling Swapt customers into your main list

There are a few ways Swapt customers can be added to your main email list, depending on your current strategy.

Post-Purchase Flows

The best way to funnel Swapt customers into your post-purchase flows is simply to duplicate existing post-purchase emails and add them to the flow you created above. You can filter customers who have clicked the review button out of a follow-up email with a conditional

Main Engaged List

Swapt customers should be added to a "Swapt" list, per the instructions above. But you can also add them to your main engaged customer list after completing their first flow to incorporate them into the rest of your purchasers.

Did this answer your question?