How to Use Stripe for GTM

S Stripe playbooks

Payments and subscription billing with events for every change. Here is every playbook that uses Stripe, what it does in each one and how to set it up.

List price
Usage-based (opens in a new tab)
Plan it needs
No monthly fee: cards are 2.9% + 30 cents per successful domestic transaction, and pay as you go Billing is 0.7% of billing volume.
Site
stripe.com (opens in a new tab)

How do you use Stripe for failed payment recovery?

A customer who means to keep paying can still churn because a card expired, got replaced or hit a limit on renewal day. Nobody decided to leave, yet the revenue is gone unless something retries the charge and asks for a new card before the subscription ends.

Billing and retries: setting up Stripe

  1. In the Stripe Dashboard, go to Billing > Revenue recovery > Retries and turn on Smart Retries. New accounts start at up to 8 retries within 2 weeks; the window can be 1 week, 2 weeks, 3 weeks, 1 month or 2 months.
  2. On the same page, pick what happens when retries run out: cancel the subscription, mark it unpaid, leave it past due, or pause it if it is eligible.
  3. In the revenue recovery email settings, decide on Send emails when card payments fail (off if another tool sends dunning) and turn on Send emails about expiring cards. Set the update link to the Stripe-hosted page.
  4. In Workbench, add an event destination for invoice.payment_failed and invoice.paid so the rest of the stack hears about each failure and each save.
  5. Each week, open Billing > Revenue recovery for failed payments, recovery rate, recovered volume by method and the top customers still in recovery.

Watch for: Retries charge the subscription's default payment method before the customer's, so a new card saved only on the customer can be skipped when the subscription has its own default.

All failed payment recovery stacks

How do you use Stripe for offline conversion sync?

Ad platforms bid on whatever you tell them is a conversion. If that is a form fill, they find you more form fills, including students, competitors and people who never pick up the phone. The ads look cheap while sales complains about lead quality, and nobody can say which campaign made money.

CRM or billing system: setting up Stripe

  1. At signup, read fbc (the _fbc cookie, or build it as fb.1.<time>.<fbclid> from the URL), the user agent and the signup page URL, plus the consent choice.
  2. Write them to the Stripe Customer's metadata (keys like fbc, client_user_agent, signup_url, ad_consent). Metadata allows 50 keys of up to 500 characters each.
  3. If you use Checkout, also set subscription_data.metadata so the values ride on the Subscription and show up on its invoices.
  4. Add a webhook endpoint that listens to invoice.paid, and note each invoice's billing_reason: subscription_create is a new customer, subscription_cycle is a renewal.

Watch for: Metadata does not copy between objects on its own, so an fbc saved only on the Checkout Session never reaches the invoice.

All offline conversion sync stacks

Free to copy, and staying free

If this saved your team a build, an optional $5 tip helps cover what it costs to keep these current. Nothing unlocks, and every template and playbook stays free.

Buy us a coffeeTip us for the free templates (optional tip, $5 suggested, opens Stripe in a new tab)

Want us to build this?

We can set up any of these Stripe playbooks for you: Stripe, Customer.io, Slack, n8n, Klaviyo and Twilio connected in your own accounts, tested with real records and handed over with a short guide your team can follow. You'll know it works because mRR recovered from failed subscription payments each month is tracked from the first week.

Most builds like this are a flat-fee Done-for-you Playbooks install. Tell us your stack on a short call and you'll leave with a fixed scope and price.