Skip to content

Paid Social Attribution

B2B SaaSE-commerce

Send Stripe subscriptions to Meta Conversions API

Forward verified Stripe subscriptions and paid invoices directly to Meta Conversions API with fbclid and SHA-256 email matching so Meta optimizes for paying subscribers, not free sign-ups.

Test safely with Meta's Test Events code before going live.

6 min read15 min setupUpdated
VP of Growth in a navy blazer speaking with a smiling colleague near sweeping sunlit skyline headquarters windows.
Send verified Stripe subscription payments and renewals to Meta CAPI so Meta optimizes for paying accounts instead of free sign-ups.

Interactive subscription signal recovery

See how many paid Stripe subscriptions your Meta Pixel misses

Adjust monthly Meta ad spend, paying Stripe subscriptions, and browser/trial drop-off to compare pixel-only CPA against server-side Meta CAPI.

Illustrative subscription SaaS · 30-day cohort
$14,000

Prospecting campaigns targeting trial or direct-to-paid sign-ups.

250

Succeeded Stripe subscriptions after failed cards are skipped.

42%

Off-page trial conversions and Safari ITP typically hide 35% to 55%.

Before·

Default reporting

Browser pixel only

Pixel-reported CPA

$97

105 real orders invisible to ad bidding

  • 42% of checkout confirmations drop on Safari ITP and strict blockers.
  • Ad platform bidding sees inflated CPA and throttles winning ad sets.
  • Double-counting risk if server events are sent without matching event_id.
With Apex·

With Apex

Server CAPI + event_id dedup

Verified CPA with Apex CAPI

$60

233 of 250 orders matched server-side

  • Apex hashes email, phone, and click IDs (fbclid/gclid/ttclid) server-side.
  • Matching event_id ensures Meta, Google, and TikTok deduplicate cleanly.
  • Only paid, non-refunded orders feed back into ad optimization.

Browser-only conversions

145

42% blocked by ITP / ad blockers

Recovered via Apex CAPI

+88

$6,952 verified revenue restored

Reported CPA shift

$97 -> $60

Same spend, verified server deduplication

30-day conversion signal comparison

Signal pathMatched ordersVerified revenueReported CPA
Browser pixel alone145$11,455$97
Browser + Apex Server CAPI233$18,407$60

Keep failed cards out of Meta bidding

Because Apex reads succeeded Stripe subscriptions rather than checkout button clicks, Meta stops learning from declined cards and abandoned trial accounts.

The complete playbook

Step-by-step setup, worked math, and real limits.

Steps, technical details, and live pricing.

How it works without Apex

Connect Stripe and Meta Ads in Apex, install the web snippet so fbclid is captured on landing pages, select your Meta pixel, and toggle New subscriptions and Sales on under Meta's conversion checklist. Apex matches paid Stripe subscriptions back to the visitor's click and SHA-256 email server-side, skips failed charges, and validates setup cleanly with Meta's Test Events code.

How Apex does it for you

Apex syncs Stripe subscriptions, charges, and refunds via OAuth, links each paying customer to their captured fbclid and hashed email, and sends verified subscription conversions to Meta Conversions API with test-code verification.

How to set this up in 5 steps

  1. Connect Stripe via the official Apex Stripe App

    Authorize your live Stripe account under Integrations in Apex so succeeded charges, subscriptions, refunds, and customer emails sync automatically (test mode and sandboxes stay labeled separately).

  2. Install the Apex snippet to capture fbclid at landing

    Add the Apex tracking snippet on your marketing site and signup flow so Meta's fbclid parameter is captured first-party and linked when the visitor signs up with their email.

  3. Connect Meta Ads and select your target pixel

    Authorize Meta Ads via Facebook Login (ads_read, ads_management, business_management), pick your ad account, and choose the Meta pixel that should receive subscription conversions.

  4. Validate with Meta Events Manager Test Events code

    Paste the test event code from your pixel's Test Events tab in Meta Events Manager into Apex and click Test so Meta verifies the server event without polluting live reporting.

  5. Turn on New subscriptions and Sales sends

    Acknowledge the outbound transfer agreement and switch on New subscriptions (and Sales for renewals or one-time payments) so Meta's algorithm begins bidding toward real paying subscribers.

Why free-trial browser pixels mis-train Meta Ads

When a SaaS or subscription brand runs Meta Ads, the easiest event for the Meta browser pixel to see is CompleteRegistration or StartTrial. The moment you optimize Meta campaigns for free sign-ups, Meta's auction finds the cheapest sign-ups on earth: people who click, try the product for two minutes, and never enter a credit card.

Meanwhile, the event that pays your bills happens 7 or 14 days later inside Stripe when a trial converts to a paid subscription via a background invoice charge. No browser window is open when Stripe bills the card, so the Meta Pixel never fires.

Two SaaS founders smiling warmly beside a sunlit glass office wall after reviewing monthly subscription growth.
Connect Stripe webhooks directly to Meta CAPI so delayed trial-to-paid upgrades train Meta's algorithm on real recurring revenue.

Connecting Stripe subscriptions to Meta Conversions API

Apex closes the loop cleanly without custom webhook glue code or brittle Zapier zaps:

  1. Connect [Stripe](/docs/connectors/stripe): Install the official Apex Stripe App via OAuth. Apex syncs succeeded charges, active subscriptions, refunds, and customer emails while keeping Stripe test mode and sandboxes isolated from live reporting.
  2. Capture `fbclid` on your site: Add the Apex tracking snippet so every Meta ad click stores its fbclid first-party and links cleanly when the visitor creates an account with their email.
  3. Connect [Meta Ads](/docs/connectors/meta-ads) and pick your pixel: Authorize via Facebook Login and select the pixel that owns your ad campaigns. Sending remains off until you turn it on explicitly.
  4. Enable `New subscriptions` and `Sales`: Under Meta's conversion list in Apex, acknowledge the outbound data transfer terms and toggle on New subscriptions (sent as Meta's subscription conversion) and Sales (for renewals or one-time payments).

Make sure every Stripe customer carries an email address so Apex can stitch off-page recurring payments back to the visitor's original Meta click.

Agency owner in an olive knit sweater sitting in a sunlit home study armchair reading a handwritten quarterly notebook beside colorful real bookshelves.
First-party fbclid and SHA-256 hashed billing email bridge the gap between a Day 1 ad click and a Day 14 Stripe invoice.

Testing safely with Meta Test Events

Before shifting your Meta campaign optimization event from StartTrial to Subscribe:

  1. Open your pixel in Meta Events Manager and copy the code from the Test Events tab.
  2. Paste that test code into Apex's Meta Ads page and click Test on the New subscriptions row.
  3. Confirm the server event arrives immediately in Meta's Test Events panel with zero impact on live reporting.

Apex never creates or pauses your Meta campaigns and never edits bids or budgets.

What this costs on Apex

Live Apex pricing · Pay-as-you-go

Estimated Apex cost for Subscription SaaS with 20,000 site events and 250 new paid Stripe subscriptions/month

$0 / month

Covered by monthly free allowances.

Apex meter / scheduleScenario volumeFree allowance / basisRateApex cost
Events
Landing page and signup fbclid capture events (20,000 events via the Apex snippet)
20,000 / mo1M / month$5 per 100K events$0
Attribution
Attributed paid-channel Stripe subscriptions (250 paid subscriptions matched to Meta Ads)
250 / mo1.5K / month$0.05 per attributed conversion$0
Ad platform activations
Meta Conversions API subscription sends (Verified New Subscription events sent via CAPI)
250 / mo100K / month$10 per 100K sends$0

Stripe and Meta Ads connectors carry zero connector fees or percentage-of-revenue charges. History: 13 months no card, 3 years with card, 7 years once you've paid an invoice. Live pricing.

Third-party and campaign costs (not paid to Apex)

ExpenseTypical rangeNotes
Meta Conversions API$0/moIncluded with your Meta Business Manager pixel

Every meter includes a monthly free allowance that resets automatically, with zero connector markups or percentage-of-revenue fees.

Launch with your AI agent

Preview and enable Stripe-to-Meta CAPI subscription sends via MCP

After connecting Stripe and Meta Ads via OAuth, ask your coding agent to inspect your outbound conversion rules, preview a subscription payload, and verify sending readiness.

1Add Apex to your editor

Install in Grok Build

Opens Grok Build and adds Apex. Nothing to configure.

2Tell your agent

Prompt for your AI editor

In my Apex workspace, call get_conversion_source_of_truth and list_ad_platform_sends to check whether Stripe new subscriptions are sending to Meta Ads, run preview_ad_platform_send for Meta so we can inspect the hashed payload, and confirm before calling add_ad_platform_send.

The first time your agent calls Apex, it gives you a link to approve in the browser. There is no key to paste. In Grok Build you can also run /setup-apex.

See how editor setup works step by step

saas-web · Grok BuildWaiting for approval
Agent
You

Set up Apex in this repo.

Set up Apex · 0 of 4
  • Signed in
  • Workspace named
  • Events arriving
  • Conversion picked
  • Stripe

Your move

Teach Meta Ads who actually pays on Stripe, not who starts free trials.

Connect Stripe and Meta Ads in 15 minutes and stream verified subscriptions straight to Meta Conversions API.