# Offline conversion sync setup guide

A free template from New Theory: https://newtheory.marketing/playbooks/templates/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.

This guide has three ways to build it: a HubSpot workflow, a Zapier build and the n8n workflow that ships with it. Pick the one that matches the tools you already pay for. The steps come from our own playbook records, checked against each vendor's docs. They are not official HubSpot, Zapier or n8n templates, and menu names change, so keep the vendor links at the bottom open while you build.

## What it should get you

- Every paid lead carries its click ID (gclid, gbraid, wbraid, fbc or li_fat_id) and a consent flag from the first form fill to the closed deal.
- Qualified, opportunity and closed-won stages land in each ad platform within a day, with a value tied to what that stage is worth.
- Bidding runs on a primary conversion that is a qualified stage, not a raw form fill, once enough volume has built up.
- A weekly check shows upload errors, match quality and conversion counts next to CRM counts, so drift gets fixed before it skews bids.
- Leads who did not consent are never sent, and EEA uploads carry the ad_user_data and ad_personalization signals.

## What's in this template

- `offline-conversion-sync-n8n-workflow.json`: an n8n workflow you can import (Workflows > Import from File). Credentials are placeholders and sticky notes say what to fill in.
- `offline-conversion-sync-setup-sheet.csv`: a setup sheet with every field mapping, setting, owner and pre-launch check. Open it in Google Sheets or Excel.
- `offline-conversion-sync-setup-guide.md`: this guide.

## Option 1: HubSpot lifecycle stages to Google Ads and LinkedIn

Use this route if HubSpot is your CRM. HubSpot sends lifecycle stage changes as ad conversion events, so you don't need a separate sync tool.

### Get the CRM ready

1. In Google Tag Manager, add the Conversion Linker tag on an All Pages trigger so Google click data lands in first-party _gcl_ cookies on every landing page.
2. Check that new contacts from Google ads fill the Google ad click id property. If yours stay empty, add a hidden gclid field to the HubSpot form and map it to that property.
3. Create a single-checkbox contact property called Ad data consent and add it to every form that runs behind paid traffic, worded to match your privacy policy.
4. Write down what each lifecycle stage means (MQL, SQL, Opportunity, Customer) and lock who can change it, because every move becomes a conversion the ad platforms learn from.
5. Set the Customer stage from closed-won deals with a workflow or a clear rep rule, so the last stage fires from a real signed deal and never from a guess.

### Create the Google Ads conversion event

1. Connect the Google Ads account in HubSpot, then go to Marketing > Ads, click Create and choose Conversion event.
2. Pick Lifecycle stage change, choose the stage, enter a fixed value, pick your consent property, keep Email under Data sharing and choose whether to set it as a primary action in Google.
3. HubSpot hashes the data with SHA-256 and matches on the Google ad click id or on contact data. Before the first lifecycle event, turn on enhanced conversions in Google Ads with Google Ads API as the user-provided data method.
4. Manager (MCC) accounts can't receive these events, and only stage changes after you create the event are sent.

### Create the LinkedIn conversion event

1. Connect the LinkedIn ad account in HubSpot, go to Marketing > Ads and click Create event, then pick LinkedIn and the lifecycle stage.
2. Enter a value, then in Data sharing settings keep email, first name and last name ticked and leave the hidden Click ID and Lead ID options on.
3. Under Choose contacts to share with network, pick All contacts that move to the selected lifecycle stage(s) so LinkedIn can match people who saw your ads too.
4. The event shows Unverified until data syncs, then Active; LinkedIn takes conversions from the last 90 days.

**Watch for:** Lifecycle stages that reps can set by hand, or that skip steps, send noise to the ad platforms as if it were pipeline.

## Option 2: Zapier

This Zap sends Pipedrive deal stages to Google Ads as offline conversions, for teams that buy clicks on Google Search.

1. Create a Zap with the Pipedrive trigger Updated Deal Stage.
2. Add a Filter step that continues only when the GCLID field exists and the new stage is one you send.
3. Add a Delay For step of a few hours so a deal that moves fast still lands after Google has processed the click.
4. Add the Google Ads action Send Offline Conversion: pick the Conversion Action by stage, map GCLID, the stage time, Value and a three-letter Currency.
5. Turn on Zap error alerts and check Zap history weekly for failed runs.

Field mappings:

- Deal GCLID to Google Click ID (GCLID): Required in the action; filter out deals without one.
- Stage change time to Timestamp: Use the deal's update time rather than the time the Zap runs when you can.
- Deal value to Value and Currency: Decimal value plus an ISO 4217 code such as USD.

**Watch for:** Zaps that run on sample data with no GCLID show a red banner but still pass the test, so a broken map can go live.

## Option 3: n8n (the workflow file)

1. In n8n, open Workflows, click Create workflow, then use the menu and choose Import from File. Pick the JSON file from this template.
2. Read the yellow Start here note first. It lists every node you need to fill in, in order.
3. Open each node with a credential and connect your own account. Nothing in the file holds a real key.
4. Replace every value that starts with REPLACE_WITH.
5. Run it once with a test event, then publish so the production webhook URL goes live. Production runs show in the Executions tab, not in the editor.

- New paid subscriptions with consent send a Purchase event to Meta's Conversions API with a hashed email, the fbc and a stable event_id.
- Failed sends go to a Failed tab so you can resend them inside Meta's 7 day window.

## Before you turn it on

Each row is something that breaks in this build and the fix. They are also in the setup sheet as checks.

| What breaks | The fix |
| --- | --- |
| Click IDs never reach the CRM because a form, redirect or iframe drops the URL parameters. | Store gclid, gbraid, wbraid, fbclid and li_fat_id in first-party cookies through Google Tag Manager and fill hidden fields from the cookie, not the URL. |
| Google rejects uploads with Conversion date precedes click date. | Send the stage time with its time zone offset, check the account time zone, and never send the CRM create date by mistake. |
| Uploads arrive before Google has processed the click and fail with a retry-in-12-hours error. | Delay uploads a few hours after the stage change and resend failed rows on the next run. |
| One deal shows up as two or three conversions. | Send a stable transaction ID, order ID or event_id per stage change, so retries and resyncs are dropped as duplicates. |
| Uploads carry no consent, or consent from the wrong user. | Store consent on the record at capture, filter non-consenting records out of every sync, and send ad_user_data and ad_personalization for EEA users. |
| Bids swing after switching the primary conversion to a qualified stage. | Run the qualified action as secondary first, wait the longer of 3 conversion cycles or 4 weeks, then swap. |

## Want it built for you?

We build these as a one to two week GTM engineering project. Book a fit call at https://newtheory.marketing/book or get a ballpark at https://newtheory.marketing/estimate.

## Sources

- Google Ads Help: About offline conversion imports: https://support.google.com/google-ads/answer/2998031
- Google Ads Help: Offline conversion imports FAQs: https://support.google.com/google-ads/answer/10029210
- Google Ads Help: About enhanced conversions for leads: https://support.google.com/google-ads/answer/15713840?hl=en
- Google Ads Help: How to upgrade offline imports: https://support.google.com/google-ads/answer/15479791?hl=en
- Google Ads Help: About offline data diagnostics: https://support.google.com/google-ads/answer/13812240
- Google Ads Help: Enhanced conversions for leads diagnostics report: https://support.google.com/google-ads/answer/15249267?hl=en
- Google Ads Help: Set up offline conversion imports with Zapier: https://support.google.com/google-ads/answer/17081156?hl=en
- Google Ads Help: Updates to consent mode for EEA traffic: https://support.google.com/google-ads/answer/13695607
- Google Ads Data Manager: Supported data sources: https://support.google.com/google-ads-data-manager/table/13860693
- Google Ads Data Manager: Connect HubSpot: https://support.google.com/google-ads-data-manager/answer/15293735
- Data Manager API: Send Google Ads offline events: https://developers.google.com/data-manager/api/devguides/events/google-ads/offline/send-events
- Tag Manager Help: Conversion linker: https://support.google.com/tagmanager/answer/7549390
- HubSpot: Create and sync ad conversion events with Google Ads: https://knowledge.hubspot.com/ads/create-and-sync-ad-conversion-events-with-your-google-ads-account
- HubSpot: Lifecycle stage ad conversion events with LinkedIn's Conversions API: https://knowledge.hubspot.com/ads/create-and-sync-your-lifecycle-stage-change-ad-conversion-events-using-linkedins-conversions-api
- HubSpot: Ad conversion events with Meta's Conversions API: https://knowledge.hubspot.com/ads/create-and-sync-ad-conversion-events-with-your-meta-ads-accounts-using-metas-conversion-api
- Meta: Conversions API server event parameters: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/server-event
- Meta: Customer information parameters: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters
- Meta: fbp and fbc parameters: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/fbp-and-fbc
- Meta: Using the Conversions API: https://developers.facebook.com/docs/marketing-api/conversions-api/using-the-api
- Meta: Conversions API for CRM payload specification: https://developers.facebook.com/documentation/ads-commerce/conversions-api/conversion-leads-integration/payload-specification.md
- Meta: Dataset Quality API: https://developers.facebook.com/docs/marketing-api/conversions-api/dataset-quality-api
- LinkedIn: Conversions API: https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/conversions-api
- LinkedIn: Click ID (li_fat_id): https://learn.microsoft.com/en-us/linkedin/marketing/conversions/enabling-first-party-cookies?view=li-lms-2024-06
- Hightouch: Google Ads destination: https://docs.hightouch.com/destinations/google
- Hightouch: Meta Conversions API destination: https://docs.hightouch.com/destinations/facebook-conversions
- Hightouch: LinkedIn Ads destination: https://docs.hightouch.com/destinations/linkedin
- Hightouch pricing: https://hightouch.com/pricing
- Salesforce Metadata API: LeadConvertSettings: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_leadconvertsettings.htm
- Pipedrive: Custom fields: https://support.pipedrive.com/en/article/custom-fields
- Zapier: Pipedrive triggers: https://zapier.com/apps/pipedrive/integrations/pipedrive/255612458/update-pipedrive-deals-for-updated-deal-stages-in-pipedrive
- Zapier Help: Google Ads Send Offline Conversion action: https://help.zapier.com/hc/en-us/articles/8496054576909-How-to-set-up-Google-Ads-Send-Offline-Conversion-action
- n8n: Stripe Trigger node: https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.stripetrigger/
- n8n: Crypto node: https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.crypto/
- Stripe: Metadata: https://docs.stripe.com/metadata
- Stripe: Event types: https://docs.stripe.com/api/events/types
- Stripe: The Invoice object: https://docs.stripe.com/api/invoices/object
- Stripe: Supported currencies and amounts: https://docs.stripe.com/currencies
