Skip to content

SaaS Revenue Attribution

B2B SaaS

Connect Google Ads clicks to net Stripe MRR

Stitch Google Ads gclid clicks to net Stripe MRR, upgrades, and refunds so you know which search campaigns create long-term recurring revenue instead of high-churn trials.

Net of refunds and lost disputes. Hourly Google Ads spend sync included.

6 min read15 min setupUpdated
SaaS founder in a rust knit sweater smiling beside floor-to-ceiling office windows while reviewing printed quarterly charts with two colleagues across an oak table.
Stitch first-party Google Ads clicks to net Stripe MRR, upgrades, and refunds so search budgets chase real recurring revenue.

Interactive SaaS attribution modeler

See how attribution models redistribute credit across Search vs brand clicks

Switch between first-touch, linear, time-decay, and last-touch models and adjust monthly Stripe revenue to see how non-brand Google Search discovery campaigns earn their budget.

Illustrative B2B SaaS · 30-day Stripe MRR
Attribution model
$85,000

Net of Stripe refunds and lost disputes.

ApexApex · Live Playbook Simulator

Verified monthly revenue

$85,000

100% reconciled to commerce / CRM

Discovery channel credit

$49,300

+$35,700 vs last-click

Branded search / direct credit

$12,750

15% of closed revenue

Revenue credit by funnel role

Touchpoint roleLast-clickSelected modelDifference
First discovery (ads, posts, QR)$13,600$49,300+$35,700
Mid-funnel nurture (email, retargeting)$20,400$22,950+$2,550
Final branded search / direct$51,000$12,750-$38,250

Why last-touch starves non-brand search

Buyers often discover your product via a non-brand search click, read docs for a week, then Google your brand name to sign up. Comparing first-touch against last-touch exposes which non-brand keywords create real Stripe MRR.

Credit restored to discovery touches

$49,300

Full multi-touch path kept on one stitched customer timeline

  • Switch attribution models in one click without re-tagging links or re-importing orders.
  • Compare first-touch, linear, time-decay, and last-touch on the exact same revenue.

Stitched buyer journey

  1. Day 1Discovery touch capturedFirst touch

    Apex stores first-touch source on the visitor ID.

  2. Day 11Email click + identity stitchStitched

    Visitor signs up; anonymous session merges onto the customer record.

  3. Day 19Direct checkout closesVerified

    Revenue credits cleanly across the chosen attribution model.

The complete playbook

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

Steps, technical details, and live pricing.

How it works without Apex

Connect Google Ads and Stripe in Apex and install the web tracking snippet so every search click's gclid is captured first-party and matched to the customer's Stripe email at signup. Apex combines hourly Google Ads spend with net Stripe charges, subscriptions, upgrades, and refunds so you can compare true payback and LTV by campaign and send verified subscriptions back to Google Ads.

How Apex does it for you

Apex joins hourly Google Ads spend and gclid clicks to net Stripe MRR, refunds, and lost disputes automatically, and lets you compare attribution windows and send verified new subscriptions back to Google Ads.

How to set this up in 5 steps

  1. Connect Stripe as your revenue source of truth

    Install the official Apex Stripe App under Integrations so charges, subscriptions, refunds, lost disputes, and customer emails sync automatically.

  2. Connect Google Ads via OAuth 2.0

    Authorize Google Ads (adwords and datamanager scopes) and select your Customer ID so Apex pulls the last 30 days of spend and refreshes hourly.

  3. Capture gclid and call identify() at signup

    Install the Apex tracking snippet so every search click records gclid first-party, and call identify(user.id, { email }) at signup so future Stripe renewals stitch cleanly to the first click.

  4. Compare first-touch vs last-touch MRR by campaign

    Open Attribution in Apex to see net Stripe revenue, LTV, and payback per Google campaign after full/partial refunds and lost disputes.

  5. Optionally feed verified new subscriptions back to Google Ads

    Enable the New subscriptions outbound conversion on Apex's Google Ads page so Google Smart Bidding optimizes for paid Stripe customers instead of free sign-ups.

Why cost-per-trial misleads SaaS search teams

In a self-serve SaaS funnel, two Google Search campaigns can both deliver $28 trial sign-ups while producing completely opposite businesses:

  • Campaign A captures students and curiosity browsers who never connect a team or enter a card.
  • Campaign B attracts ops leads who convert to a $299/month Stripe subscription 12 days later and expand to $799/month in quarter two.

Because Google Ads stops seeing the customer the moment the browser leaves the signup confirmation page, Campaign A and Campaign B look identical inside Google Ads.

Two B2B growth marketers discussing search campaign ROI beside a bright sunlit glass office wall.
Capture gclid on the very first landing visit so multi-week free trials and annual plan upgrades still credit the winning search keyword.

Stitching gclid clicks to net Stripe MRR

Apex joins ad spend and recurring revenue on one customer identity record in three steps:

  1. Connect [Stripe](/docs/connectors/stripe): Authorize the official Apex Stripe App. Apex syncs succeeded charges, active subscriptions, paid invoice line items, full or partial refunds, and lost disputes. Failed charges are skipped, and test mode/sandboxes stay separated from live reporting.
  2. Connect [Google Ads](/docs/connectors/google-ads): Authorize via OAuth 2.0 and pick your Customer ID. Apex pulls hourly spend (re-reading the last 3 days hourly and 30 days daily).
  3. Capture `gclid` and identify at signup: Install the Apex tracking snippet so every search click records its gclid first-party. At signup or login, call identify(user.id, { email }) (see the B2B SaaS Wiring Guide) so future Stripe charges and upgrades stitch cleanly back to the originating Google campaign.

Optionally, turn on New subscriptions under Google Ads outbound conversions in Apex so Google Smart Bidding receives verified paid Stripe customers instead of free sign-ups.

Finance lead in a chambray button-down walking along a sunlit wood-paneled office hallway carrying a tabbed folder with printed quarterly reports.
Net MRR automatically reflects Stripe invoice payments, seat expansions, and refunds so Google Ads never gets credited for churned trials.

Comparing attribution models before cutting non-brand search

Last-touch attribution consistently over-credits branded search terms ("your brand login") while starving the non-brand problem keywords that introduced the buyer in the first place. Use the interactive modeler above and Apex's Attribution view to inspect first-touch, linear, time-decay, and last-touch revenue side by side before shifting search budgets.

What this costs on Apex

Live Apex pricing · Pay-as-you-go

Estimated Apex cost for B2B SaaS with 25,000 site events and 400 Google-attributed Stripe payments/month

$0 / month

Covered by monthly free allowances.

Apex meter / scheduleScenario volumeFree allowance / basisRateApex cost
Events
Landing page, docs, and signup events (Captures gclid and stitches signed-in users via identify())
25,000 / mo1M / month$5 per 100K events$0
Attribution
Attributed paid-search Stripe conversions (400 paid Stripe subscriptions & upgrades)
400 / mo1.5K / month$0.05 per attributed conversion$0
Ad platform activations
Optional Google Ads New Subscription CAPI sends (Feeds verified paying subscribers back to Google Smart Bidding)
180 / mo100K / month$10 per 100K sends$0

No connector fees. Hourly Google Ads spend sync and full Stripe LTV history are included. 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
Stripe and Google Ads APIs$0/moIncluded with your existing Stripe and Google Ads accounts

Every meter resets its monthly free allowance automatically, with zero per-seat fees or connector markups.

Launch with your AI agent

Inspect Google Ads channel economics against Stripe MRR via MCP

After connecting Google Ads and Stripe in Apex, ask your coding agent to pull live SaaS recurring revenue, channel economics, and outbound Google conversion setup.

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_saas_recurring_revenue and get_channel_economics to compare Google Ads spend against verified Stripe MRR and upgrades, then check list_ad_platform_sends to see if new Stripe subscriptions are feeding back to Google Ads.

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-app · 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

Stop scaling search keywords that only buy churned free trials.

Connect Google Ads and Stripe in 15 minutes and allocate search budget using verified recurring revenue.