Stripe A/B testing integration

Connect Stripe once and judge experiments on money instead of clicks. Mida links each successful payment back to the variant the buyer saw and reports revenue, RPV, and AOV per variant.

Payments Data in Server-side Works with Mida A/B Testing & Personalization

About Stripe

Stripe is the payments platform behind a large share of online checkouts, Payment Links, and subscription businesses. If your revenue runs through Stripe, this integration turns every successful payment into a conversion Mida can attribute to an experiment — no tag manager work and no manual revenue imports.

How the Stripe integration works

Mida registers a webhook on your Stripe account and records every successful payment server-side. Each payment is linked to an exposed visitor in one of three ways. (1) Metadata: set metadata.mida_uuid on the PaymentIntent or Checkout Session to the value of the optimize_uuid cookie. (2) Payment Links and Checkout: pass client_reference_id — the Mida tag decorates buy.stripe.com links automatically and reads ?session_id={CHECKOUT_SESSION_ID} on your thank-you page, so hosted Payment Links need no code at all. (3) Email: the customer email on the payment is matched to a visitor Mida has already identified. Linked payments become Purchase events, so a Revenue goal reports conversion rate, revenue, revenue per visitor, and average order value for every variant.

Requirements

  • Mida tracking code installed on the pages where visitors enter an experiment.
  • A Stripe restricted key (rk_live_ or rk_test_) with Read access to Payment Intents, Charges, Checkout Sessions, Invoices, Subscriptions, Customers, and Account, plus Write access to Webhook Endpoints — without that write scope you add the webhook in Stripe yourself.
  • Owner or Admin role in Mida to connect, rotate, or disconnect the key.

How to use Stripe with Mida

  • Install the Mida snippet on the pages where your Stripe scripts, embeds, forms, or analytics events already run.
  • Enable the Stripe integration in your Mida workspace so experiment exposure and conversion events can be matched to the right visitor and variant.
  • Launch an A/B test or personalization campaign, then use Stripe data to analyze variant performance, diagnose friction, or select deeper conversion goals.

Use cases

Score tests on revenue, not clicks

A variant can win on checkout starts and still lose on money. With Stripe connected, Mida reports revenue per visitor and average order value next to conversion rate, so you deploy the variant that actually earns more.

Attribute hosted Payment Links with no code

The Mida tag adds client_reference_id to buy.stripe.com links and reads the session id back on your thank-you page. Landing pages that sell through Payment Links get full revenue attribution without a developer.

Test pricing pages and checkout flows

Compare plan ordering, price anchoring, trial length, or a one-step vs multi-step checkout and measure the result in settled Stripe payments rather than button clicks.

Keep revenue reporting server-side

Payments reach Mida over a signed Stripe webhook, so ad blockers, consent tooling, and client-side tag failures don't silently erase your revenue numbers.

Shared data

Mida and Stripe exchange the following events:

Event Direction Description
Purchase Data in One event per successful Stripe payment linked to an exposed visitor, carrying revenue, currency, order_id, stripe_payment_intent, and source.

Frequently asked questions

Do subscription renewals count as conversions?

Not unless you switch them on in the integration config. The first invoice of a subscription always counts, so new subscribers are credited to the test that won them.

What happens when a payment is refunded?

The refund reduces the revenue of the original payment but does not remove the conversion, so conversion rate and revenue stay internally consistent.

Can I run the Stripe connector alongside the Shopify pixel?

Use one purchase source per project. Running Stripe next to the Shopify pixel or your own Purchase events double counts revenue.

Does Mida need full access to my Stripe account?

No. A restricted key with read access to payment objects plus write access to webhook endpoints is enough, and you can rotate or disconnect it from Mida at any time.

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.

Decorative graphic Decorative graphic Decorative graphic Decorative graphic