Eleven logo
1-Click IntegrationPayment Provider

Connect Stripe with Eleven.Direct 1-click Stripe webhook revenue attribution.

Connect your Stripe account to Eleven in under two minutes. Automatically match payment receipts, subscription upgrades, MRR, and churn directly to marketing traffic channels and UTM campaigns.

Setup Time2 mins
Privacy100% Cookieless
SecuritySigned Webhooks
Integration TypePayment Provider

Overview#

Connecting Stripe to Eleven gives you financial clarity. Instead of guessing whether an advertising campaign or blog post worked based on vanity pageviews, Eleven reconciles incoming Stripe charge events against cookieless visitor sessions.

Privacy-Safe Matching
Eleven does not store customer credit cards or sensitive billing addresses. Webhooks are mapped using pseudonymous checkout session IDs and anonymous visitor tokens.

---

Quick Setup Guide#

Step 1: Add the Eleven Script to Your Site#

Add the standard 1KB Eleven embed snippet to your website header:

index.htmlhtml
<!-- Eleven Analytics Tracking Snippet --><script  defer  data-domain="yourdomain.com"  src="https://cdn.elevenanalytics.io/script.js"></script>

Step 2: Pass the Session ID to Stripe Checkout#

When redirecting users to Stripe Checkout or opening an Embedded Form, pass Eleven's client session identifier in the client reference metadata:

analytics.tstypescript
import Stripe from "stripe";const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!);export async function createCheckoutSession(userId: string) {  const session = await stripe.checkout.sessions.create({    payment_method_types: ["card"],    mode: "subscription",    line_items: [      {        price: "price_premium_monthly",        quantity: 1,      },    ],    // Pass Eleven attribution session metadata    client_reference_id: userId,    metadata: {      eleven_ref: "auto", // Automatically matches server-side    },    success_url: "https://yourdomain.com/dashboard?session_id={CHECKOUT_SESSION_ID}",    cancel_url: "https://yourdomain.com/pricing",  });  return session.url;}

Step 3: Add the Webhook in Stripe Dashboard#

  1. Go to your Stripe Dashboard → Developers → Webhooks.
  2. Click Add destination and enter your Eleven Webhook URL:

https://api.elevenanalytics.io/v1/webhooks/stripe

  1. Select the following events:
  • checkout.session.completed
  • customer.subscription.created
  • customer.subscription.updated
  • customer.subscription.deleted
  • invoice.paid

---

Verification & Live Reporting#

Once your webhook is registered, test with a Stripe test-mode transaction. You will immediately see:

  • Real-time conversion ping on your Eleven dashboard
  • Acquisition source and referrer tag attached to the revenue
  • Net MRR increase credited to the campaign
Key Capabilities
Exact MRR & LTV AttributionSee which Google Ads, newsletter links, or organic blog posts generated actual paid customer subscriptions.
Server-to-Server Webhook MatchingZero client-side exposure. Payment events are verified via signed Stripe webhooks for 100% financial accuracy.
Subscription Lifecycle TrackingTrack trial starts, conversions, recurring renewals, upgrades, and cancellations on a unified dashboard.
Multi-Touch Funnel AnalysisInspect the entire conversion pathway from initial visitor arrival to final Stripe Checkout completion.
Need Assistance?

Our engineering team can assist with custom webhooks, data migration, and server validation.

Contact engineering
Frequently Asked Questions

Stripe Integration FAQs

Everything you need to know about setting up Eleven with Stripe.

Yes. You can connect both Test Mode and Live Mode webhooks. Test data can be toggled on or off from your project settings.

Still have questions?

We are here to help you get set up and answering questions anytime.

Contact support

Analytics you'll actually check.Every single day.

You are just a couple of minutes away from bringing your dashboard to life.