Mida + Klaviyo integration

Push Mida exposure data into Klaviyo to segment email flows by variant, and capture Klaviyo form submits.

Marketing & Email Two-way sync Client-side Works with Mida A/B Testing & Personalization

About Klaviyo

Klaviyo is the leading email and SMS marketing platform for ecommerce, powering personalized flows for 100,000+ Shopify, BigCommerce, and Magento stores. Klaviyo's strength is segmenting customers by behavior — Mida adds A/B test variant data into that segmentation.

How the Klaviyo integration works

Mida ↔ Klaviyo is bidirectional. Outbound, Mida calls klaviyo.track() with mida_pageview, mida_execute, and mida_conversion events tagged with the variant. Inbound, Mida wraps Klaviyo's tracking function to capture form submissions and other Klaviyo events as Mida goals.

Requirements

  • Klaviyo's klaviyo.js loaded on the page (window.klaviyo).
  • Mida tracking code installed on the page.

Use cases

Segment Klaviyo lists by A/B test variant

Build a Klaviyo segment like 'Browsed product page — saw variant B' and trigger a tailored welcome flow only for that variant. Powerful for testing different value propositions across the funnel.

Treat Klaviyo signup form submits as conversions

If your hero CTA is a Klaviyo embedded form, Mida picks up every signup as a goal automatically — perfect for ecommerce homepage tests.

Test email-driven landing pages

Run Mida tests on landing pages that Klaviyo flows send traffic to. Mida attributes conversions back to variants while Klaviyo handles the email send — clean separation of concerns.

Combine Mida personalization with Klaviyo segments

Use a Klaviyo segment (e.g. 'VIP customers') to show personalized hero copy or product recommendations via Mida — no Shopify theme changes required.

Shared data

Mida and Klaviyo exchange the following events:

Event Direction Description
mida_pageview Data out klaviyo.track() called on every page after variant assignment.
mida_execute Data out klaviyo.track() called when a test executes on the current page.
mida_conversion Data out klaviyo.track() called when a Mida conversion goal is reached.
klaviyo-form-submit Data in Captured when a Klaviyo embedded form is submitted.

Frequently asked questions

Will Mida write events to known Klaviyo profiles or anonymous ones?

Whichever Klaviyo currently has. If the visitor is identified (via a previous form submit or email click), the events attach to their profile; otherwise they attach to the anonymous Klaviyo cookie ID.

Does this work with the Klaviyo Shopify integration?

Yes. The Mida integration uses the standard Klaviyo Web SDK so it's stack-agnostic.

Ship A/B tests 10x faster — connected to your stack

Mida is the lightweight A/B testing and personalization platform that integrates with the tools you already pay for.