Skip to content

B2B SaaS

Sync HubSpot closed-won deals to LinkedIn & Google Ads

Stop letting LinkedIn and Google chase cheap PDF downloads by automatically sending your won HubSpot deals back to both ad platforms.

Free monthly allowances included. No credit card to start.

8 min read~15 min active setupUpdated
B2B revenue operations director reviewing quarterly closed-won pipeline at a sunlit office desk behind an open laptop
Stream actual HubSpot Closed-Won ACV back to LinkedIn CAPI and Google Ads so bidding follows real pipeline instead of cheap whitepaper forms.

Interactive preview · Pipeline truth vs form volume

See why HubSpot Closed-Won deals reverse which ad campaign wins.

Compare raw lead-form cost against actual closed-won ACV across LinkedIn Ads and Google Ads for Clearpath Fleet.

Illustrative fixture · Clearpath Fleet
Apexapex / attribution / hubspot-closed-won-capi

Ranked by HubSpot Closed-Won revenue (DOT Demo wins 6.7x)

LinkedIn Ads

DOT Compliance Demo · VP Fleet

Top Closed-Won ROAS

Monthly spend

$5,400

Closed-Won

5 ($36,000)

Pipeline ROAS

6.67x

LinkedIn Ads

2026 Fuel Tax Checklist PDF

Monthly spend

$3,600

Closed-Won

1 ($4,800)

Pipeline ROAS

1.33x

Google Ads

Fleet ELD Compliance Software · Exact

Monthly spend

$4,200

Closed-Won

4 ($24,800)

Pipeline ROAS

5.9x

$13,200 spend across LinkedIn Ads & Google Ads produced 10 HubSpot Closed-Won deals totaling $65,600 ACV (4.97x gross ACV ROAS, $1,320 blended CAC).
Blended monthly outcome

Closed-won account trail

Owen Gallagher

owen.gallagher@example.com

$7,200

Midwest Cold Chain · Closed Won

  1. Offline conversion sentMay 29, 2026, 9:00 AM
  2. PurchaseMay 28, 2026, 3:00 PM
  3. Form submitMay 1, 2026, 3:00 PM

    /dot-demo?li_fat_id=8f92c...

The complete playbook

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

Follow the steps below, check how this interacts with tools you already run, and inspect live Apex pricing before turning anything on.

How it works without Apex

LinkedIn and Google only know who filled out a form, not who actually became a paying customer weeks later. To teach those ad platforms which clicks turned into real deals, your team has to hide tracking tags (li_fat_id and gclid) inside every form, download won deals from HubSpot into spreadsheets each week, and upload them by hand to LinkedIn Conversions API and Google Offline Conversions. As soon as two people from the same company touch your site, those spreadsheets break.

How Apex does it for you

Apex saves each visitor's ad click (li_fat_id and gclid) when they land on your site and connects it to their work email when they request a demo. When your sales team marks a deal as Closed-Won in HubSpot, Apex automatically sends the real dollar amount back to LinkedIn Conversions API and Google Ads Data Manager API so your ads chase real buyers instead of free PDF downloaders.

How to set this up in 4 steps

  1. Add Apex.js to your landing pages to save LinkedIn and Google click tags

    Drop the Apex script onto your marketing site and demo pages so LinkedIn (li_fat_id) and Google (gclid) click tags are saved automatically before anyone fills out a form.

  2. Link the visitor's work email when they submit a demo or guide form

    Call apex.identify(workEmail) on your forms so Apex connects each anonymous ad click straight to that buyer's HubSpot record.

  3. Connect HubSpot CRM, LinkedIn Ads, and Google Ads

    Sign in to all three accounts inside Apex Integrations so ad spend, clicks, and won HubSpot deals live in one place.

  4. Test the feed safely for 2 to 4 weeks before switching your ad bidding

    Send Closed-Won deals as a Secondary goal first so you can confirm they match up inside LinkedIn Campaign Manager and Google Ads without changing live bids. Once the match rates look solid, promote Closed-Won to your Primary goal.

What you already have (and why form fills fool LinkedIn & Google)

Most B2B teams judge LinkedIn Ads and Google Search campaigns by how cheaply someone fills out a form or downloads a free guide. On paper, a free PDF checklist looks like a huge win at $62 a lead while a product demo ad costs $225 a lead. One or two months later, your sales team closes five paying contracts from the demo ad and almost zero from the free PDF, yet LinkedIn and Google keep pushing your budget toward whichever form gets the most clicks.

Downloading won HubSpot deals into spreadsheets and uploading CSVs to LinkedIn Campaign Manager and Google Ads every Friday works for a couple of weeks, then breaks as soon as deals take longer than a month or buyers switch between work laptops and phones.

How click IDs, HubSpot Closed-Won deals, and ad CAPI feeds connect

Demand generation lead and sales operations manager discussing quarterly pipeline notes across a sunlit wooden conference table

When a deal reaches Closed Won in HubSpot, Apex resolves the contact's original LinkedIn or Google click ID and pushes verified contract ACV back to each ad platform automatically.

  1. Automatic click-ID capture + form identify: Install the Apex Web SDK on your marketing site and landing pages (for example on a branded try.clearpathfleet.com link or main domain) so li_fat_id and gclid parameters are captured automatically. Call apex.identify(workEmail) on every demo or content form submit.

  2. Connect HubSpot CRM once: Authorize HubSpot so Apex syncs contacts, companies, and deals continuously. Only deals that reach Closed Won with a real dollar amount count as verified revenue.

  3. Stream verified Closed-Won conversions back to LinkedIn CAPI & Google Data Manager API: Apex matches the closed-won contact's work email (SHA-256 hashed) and stored li_fat_id / gclid and pushes the actual deal amount back to LinkedIn Conversions API and Google Ads. Keep the Closed-Won conversion action as Secondary while verifying match rates, then promote it to Primary once volume stabilizes so Smart Bidding optimizes for revenue rather than cheap PDF downloads.

export async function onDemoRequest(lead: {
  email: string;
  name: string;
  company: string;
  fleetSize: number;
}) {
  await createHubSpotContact(lead);

  // Links captured li_fat_id and gclid parameters to the buyer's work email
  window.apex?.identify(lead.email, {
    name: lead.name,
    company: lead.company,
  });

  window.apex?.track("form_submit", {
    form_name: "dot_compliance_demo",
    fleet_size: lead.fleetSize,
  });
}

LinkedIn Conversions API matches conversions up to 90 days after the ad interaction, and Google Ads Data Manager API accepts offline click conversions within 90 days of the click. Review our HubSpot connector docs, LinkedIn Ads docs, and Google Ads docs for exact OAuth scopes and field mapping.

Connector setup & attribution windows

Worked monthly example (illustrative assumptions)

All figures below are illustrative assumptions for a fictional B2B fleet SaaS company (Clearpath Fleet) spending $13,200/month across LinkedIn Ads and Google Ads:

CampaignSpendLeads (CPL)Closed-WonClosed ACVACV ROAS
DOT Compliance Demo · VP Fleet$5,40024 ($225)5$36,0006.67x
2026 Fuel Tax Checklist PDF$3,60058 ($62)1$4,8001.33x
Fleet ELD Compliance Software · Exact$4,20031 ($135)4$24,8005.9x
Total monthly (illustrative)$13,200113 ($117)10$65,6004.97x

Unit economics caveat: Gross ACV ROAS measures signed annual contract value against media spend before sales salaries, implementation costs, and gross margin. Use your target CAC payback period when deciding how much budget to shift out of low-intent whitepaper ads.

Live Apex pricing and campaign cost

The table below reads live from Apex's published rate card for 9,550 monthly events, 10 attributed HubSpot Closed-Won deals, and 10 outbound conversion sends to LinkedIn CAPI and Google Ads Data Manager API.

Live Apex pricing · Pay-as-you-go

Estimated Apex cost for $13,200/mo LinkedIn & Google Ads spend (10 HubSpot Closed-Won deals)

$0 / month

Fully inside Apex's free monthly allowances (resets every calendar month).

Apex meter / scheduleScenario volumeFree allowance / basisRateApex cost
Events
1,620 ad click sessions, 480 return visits, and 10 HubSpot deal syncs
9,550 / mo1M / month$5 per 100K (per unit)$0
Attribution
10 HubSpot Closed-Won deals attributed to LinkedIn Ads and Google Ads
10 / mo1.5K / month$0.05 per unit$0
Ad platform activations
10 verified Closed-Won conversion sends to LinkedIn CAPI & Google Data Manager API
10 / mo100K / month$10 per 100K (per unit)$0

HubSpot CRM, LinkedIn Ads, and Google Ads connectors and unlimited seats carry no extra Apex fee. Individual event history stays queryable for 13 months without a card, 3 years with a card on file, and 7 years once you've paid an invoice. See the live pricing page.

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

ExpenseTypical rangeNotes
LinkedIn Ads & Google Ads media spend$13,200 / mo illustrativePaid directly to LinkedIn and Google; Apex never alters campaign budgets or bids.
HubSpot CRM subscriptionExisting planPaid directly to HubSpot; Apex connects via standard OAuth.

Limitations, prerequisites, and real-world edge cases

  • Sales cycles longer than 90 days: Both LinkedIn CAPI and Google offline click conversions enforce a 90-day lookback window for bidding feedback. Enterprise deals that close on day 120 still show inside Apex's attribution ledger, and you can send an earlier milestone (like SQL or Proposal Sent) to keep ad algorithms learning faster.

  • Buying-committee multi-contact deals: When an engineer clicks the ad and a VP signs the contract under a different email address, associating both contacts to the same HubSpot Company ensures Apex preserves account-level attribution.

  • Work email vs personal email: LinkedIn members frequently register with a personal email while filling out B2B forms with a work address. Capturing li_fat_id on the landing page prevents match-rate loss when emails differ.

For your web developer or AI editor

Wire HubSpot Closed-Won deal syncs to LinkedIn & Google Ads with Apex MCP.

Connect Apex MCP in Cursor, VS Code, or Claude Code, then paste the prompt below. Your agent verifies click-ID capture on demo forms and maps HubSpot Closed-Won sends cleanly.

1Add Apex to your editor

Install in Cursor

Opens Cursor and adds Apex. Nothing to configure.

2Tell your agent

Paste this prompt into your AI editor (scroll to read full prompt)

Inspect this codebase and my connected Apex workspace before making changes. Check our demo request forms and existing HubSpot, LinkedIn Ads, and Google Ads connections. Propose a plan to: (1) confirm Apex.js captures li_fat_id and gclid on ad landing pages, (2) add apex.identify(workEmail) and form_submit to our demo forms after my approval, (3) guide me through HubSpot, LinkedIn Ads, and Google Ads OAuth, and (4) configure Closed-Won conversion sends as Secondary first so we verify match volume without double-counting.

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

See how editor setup works step by step

clearpath-marketing-site · CursorWaiting 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 LinkedIn and Google what a closed deal looks like.

Connect HubSpot, LinkedIn Ads, and Google Ads once so ad algorithms optimize for signed ACV instead of raw MQL volume.