How to Set Up Offline Conversion Imports for Google Ads OCI

November 30, 2026

A performance campaign spends $50,000 per month on Google Search Ads targeting high-intent B2B software leads. Google Ads reports a clean $45 cost-per-lead (CPA). But inside Salesforce, only 12% of those form fills meet minimum qualification criteria, and just 3% close as paying customers. The true effective cost per acquisition (eCPA) for a paying buyer isn't $45—it is $1,500.

Smart Bidding strategies like Target CPA (tCPA) and Target ROAS (tROAS) optimize strictly for the conversion actions you report. Feed Google raw form submissions, and the bidding engine will seek out users who fill out forms cheaply—including bot traffic, job seekers, and low-budget tire-kickers. Feed Google actual closed-won CRM events and exact revenue values, and the algorithm shifts bids toward high-value buyers.

Offline Conversion Imports (OCI) bridge the gap between front-end web clicks and back-end pipeline revenue. Configuring OCI correctly requires capturing tracking identifiers, setting up your database schema, mapping lifecycle events, and passing data back to Google within strict attribution windows.

How Does Google Ads Offline Conversion Tracking Work?

Every time a user clicks a Google Ad, the URL appends a unique URL parameter called a Google Click ID (gclid). On iOS devices or privacy-restricted browsers where gclid may be restricted, Google uses alternative parameter pairs: gbraid (for app-to-web conversions with deep links) and wbraid (for web-to-app cross-device conversions under Privacy Sandbox guidelines).

The mechanics of an offline conversion follow a strict data chain:

If you run server-to-server affiliate tracking alongside paid search media, OCI functions on the same core principle as postbacks. Reviewing an S2S postback tracking setup guide helps clarify how click identifiers pass through multi-step funnels before reaching ad platform APIs.

Step 1: Capture GCLID, WBRAID, and GBRAID on Your Web Forms

Before sending data back to Google Ads, your landing pages must capture and store Google's click parameters when visitors arrive. Do not rely solely on single-page sessions; users frequently navigate between pages before filling out a form.

1. Add Hidden Input Fields to Your Web Forms

Insert hidden form fields into every lead capture form on your website:

<form action="/submit-lead" method="POST">
  <input type="text" name="first_name" placeholder="First Name" required>
  <input type="email" name="email" placeholder="Work Email" required>
  
  <!-- Hidden Tracking Inputs -->
  <input type="hidden" name="gclid" id="gclid_field" value="">
  <input type="hidden" name="wbraid" id="wbraid_field" value="">
  <input type="hidden" name="gbraid" id="gbraid_field" value="">
  
  <button type="submit">Request Demo</button>
</form>

2. Write Tracking Script to Store Parameters in Cookies

Deploy a script via Google Tag Manager (GTM) or directly in your site's header to parse URL parameters and save them to first-party cookies with a 90-day lifespan. This guarantees the parameters persist across multi-page visits.

<script>
function getQueryParam(param) {
  const urlParams = new URLSearchParams(window.location.search);
  return urlParams.get(param);
}

function setCookie(name, value, days) {
  const date = new Date();
  date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
  document.cookie = name + "=" + value + ";expires=" + date.toUTCString() + ";path=/;SameSite=Lax";
}

function getCookie(name) {
  const value = `; ${document.cookie}`;
  const parts = value.split(`; ${name}=`);
  if (parts.length === 2) return parts.pop().split(';').shift();
}

// Extract parameters from URL
const gclid = getQueryParam('gclid');
const wbraid = getQueryParam('wbraid');
const gbraid = getQueryParam('gbraid');

// Save non-empty values to first-party cookies
if (gclid) setCookie('gclid', gclid, 90);
if (wbraid) setCookie('wbraid', wbraid, 90);
if (gbraid) setCookie('gbraid', gbraid, 90);

// Populate hidden fields on DOM load
window.addEventListener('DOMContentLoaded', () => {
  if (document.getElementById('gclid_field')) {
    document.getElementById('gclid_field').value = getCookie('gclid') || '';
  }
  if (document.getElementById('wbraid_field')) {
    document.getElementById('wbraid_field').value = getCookie('wbraid') || '';
  }
  if (document.getElementById('gbraid_field')) {
    document.getElementById('gbraid_field').value = getCookie('gbraid') || '';
  }
});
</script>

Step 2: Schema Requirements for Your CRM Database

Your CRM or database must store tracking fields alongside prospect PII. To support Enhanced Conversions for Leads—which uses hashed user data as a fallback when gclid is stripped by privacy browsers—store raw strings and format them correctly before upload.

Every lead database record requires these columns:

Step 3: Define Conversion Actions in Google Ads

Do not overwrite your existing web lead conversion action immediately. Create distinct offline conversion actions to run alongside your primary web conversions during testing.

  1. Navigate to Goals > Conversions > Summary in Google Ads.
  2. Click New conversion action and select Import.
  3. Select CRMs, files or other data sources, then choose Track conversions from clicks.
  4. Name the action according to your lifecycle stage (e.g., Offline - Sales Qualified Lead or Offline - Closed Won).
  5. Set Value: Select "Use different values for each conversion" and specify a default fallback value (e.g., $100).
  6. Set Count: Choose Every for purchase/revenue events, or One for lead/qualification stage transitions.
  7. Set Click-through conversion window: Match your sales cycle duration (default is 90 days).
  8. Set Action optimization options: Set to Secondary initially. Leave it secondary for 14 to 30 days while verifying that offline upload volumes and data matching stabilize.

Comparing Offline Conversion Import Methods

Select the import route that balances engineering overhead with data real-time requirements. Direct API integrations or native data managers avoid human errors inherent in manual CSV uploads.

Import Method Setup Complexity Data Latency Best For Attribution Accuracy
Google Ads Data Manager Low 1 - 4 hours HubSpot, Salesforce, BigQuery native setups High (Auto-syncs GCLID + PII)
Google Ads API (REST / gRPC) High Real-time / Near instant Custom CRMs, proprietary databases Highest (Full control of upload batching)
Zapier / Make Automation Low 15 - 60 minutes Mid-market B2B without dev resources Moderate (Subject to task limits & timeout errors)
Scheduled SFTP / CSV Medium 24 hours (Daily batch) Enterprise legacy systems, strict security protocols High (Requires strict CSV column formatting)

Step 4: Configure Data Pipelines & Enhanced Conversions for Leads

Google Ads Data Manager simplifies offline imports by connecting directly to cloud data warehouses and CRMs. However, if using the Google Ads API, your backend application posts conversion payload objects via the conversionUploads:uploadClickConversions endpoint.

Formatting API Upload Payloads

When sending data directly via REST or server-side scripts, structure your JSON payload to pass both click identifiers and hashed PII for Enhanced Conversions for Leads:

{
  "customerId": "1234567890",
  "conversions": [
    {
      "conversionAction": "customers/1234567890/conversionActions/987654321",
      "gclid": "EAIaIQobChMIr863u9_ziQIVU83CBB1...",
      "conversionDateTime": "2026-10-14 14:22:00+00:00",
      "conversionValue": 4500.00,
      "currencyCode": "USD",
      "userIdentifiers": [
        {
          "hashedEmail": "248d6a61d20638b8e5c02693127618ce54d23d1920630e200000000000000000"
        },
        {
          "hashedPhoneNumber": "5f4dcc3b5aa765d61d8327deb882cf992b96251e7a1e04a80000000000000000"
        }
      ]
    }
  ],
  "partialFailure": true
}

Hashing must follow the SHA-256 standard on normalized inputs. Convert text to lowercase, strip all trailing and leading whitespace, and remove punctuation from phone numbers before computing the hex digest.

Step 5: Adjust Bidding Algorithms from tCPA to Value-Based tROAS

Once your offline conversion imports run reliably for 30 consecutive days with zero schema or matching errors, transition your secondary conversion actions to primary signals.

1. Assign Values to Intermediate Stages

If your deal cycle exceeds 60 days, sending only "Closed-Won" revenue back to Google creates a data-sparse environment. Smart Bidding requires consistent signal density—ideally 30+ conversion events per campaign per month—to calculate optimal auction bids.

Assign explicit economic values to intermediate micro-conversions based on historical funnel conversion rates:

Understanding how to calculate your max allowable CPA based on LTV ensures that assigned stage values align with actual gross margin profiles rather than top-line revenue estimates.

2. Shift Portfolio Bidding to Target ROAS

With precise values flowing back into Google Ads, change your portfolio bidding setup from Target CPA to Target ROAS:

  1. Verify that the primary offline conversion action has accumulated at least 30 conversions within the past 30 days.
  2. Change the offline conversion action's optimization setting from Secondary to Primary.
  3. Demote the original web form submit conversion action from Primary to Secondary so Smart Bidding stops optimizing for raw form fills.
  4. Set your initial Target ROAS percentage equal to your historical baseline performance over the prior 4 weeks. If your campaign generated $30,000 in tracked offline revenue on $10,000 in ad spend, set the initial Target ROAS to 300%. Setting target expectations too aggressively during algorithm transitions can starve spend.

If you run multi-channel campaigns across Google, Meta, and affiliate partners, monitor how OCI affects your broader economics. Learning to calculate blended eCPA across multi-channel funnels prevents Google from claiming double-attributed conversion value that belongs to upper-funnel touchpoints.

Troubleshooting Common OCI Configuration Failure Modes

Offline conversion pipelines fail quietly. Google Ads does not throw account-level alerts for silent payload drops or mismatched parameters. Audit these five failure points monthly.

1. GCLID Expiration Mismatch

Google Ads enforces a strict 90-day upload window from the exact timestamp of the original ad click. If your enterprise sales cycle takes 120 days from initial inquiry to final contract execution, uploads submitted past day 90 will throw API error code EXPIRED_GCLID. To prevent losing signals, import intermediate sales pipeline milestones (such as "Stage 2 Opportunity") that occur within the 90-day boundary.

2. Unmatched Identifiers Due to Parameter Stripping

Cross-domain redirects, third-party payment gateways, and aggressive server redirection often strip query parameters like gclid or wbraid before the landing page JavaScript executes. Monitor your landing page logs to ensure the parameter persists across the full URL query string during redirect chains.

3. "Value Inflation" in Bidding Models

Passing gross contract lifetime value (LTV) rather than real immediate revenue can distort Smart Bidding algorithms if churn is high. If a subscriber signs a $12,000 annual contract but cancels after month one, reporting $12,000 inflates your campaign's true return. Pass actual realized revenue or gross profit margin values into Google Ads to maintain bidding efficiency.

4. Timestamp Formatting Failures

Google Ads API rejects conversion uploads if timestamps do not include explicit timezones. Avoid submitting raw localized strings like 2026-10-14 09:30:00. Always format timestamps with explicit offsets: 2026-10-14T09:30:00-05:00 or convert everything to UTC: 2026-10-14T14:30:00+00:00.

Next Execution Action Plan

Do not attempt to overhaul your entire account architecture in a single day. Execute this phased rollout sequence:

  1. Week 1: Update form scripts to capture and store gclid, wbraid, and gbraid in first-party cookies and CRM custom fields. Verify data capture across all primary landing pages.
  2. Week 2: Create secondary conversion actions in Google Ads for offline pipeline stages. Establish data pipelines using Google Ads Data Manager, direct API endpoints, or Zapier connectors.
  3. Week 3-4: Run parallel tracking. Compare back-end CRM stage counts against uploaded offline conversion reports in Google Ads to verify data matching accuracy without affecting live bidding.
  4. Week 5: Flip offline conversion actions from Secondary to Primary, demote raw web form fills to Secondary, and switch campaign bidding strategies to Target ROAS.

Frequently Asked Questions

How many offline conversions are needed before turning on Target ROAS?

Google Ads requires a minimum of 15 to 30 conversions per month per campaign for Smart Bidding algorithms to operate effectively. For optimal performance with Target ROAS, aim for 50 or more offline conversion events per month within a single campaign or shared portfolio strategy.

What happens if a user submits a form without a GCLID?

If a user arrives via organic search, direct traffic, or an ad platform where parameter tracking was blocked, the gclid field will be blank. In these cases, Google Ads uses Enhanced Conversions for Leads, matching the SHA-256 hashed email or phone number against signed-in Google user accounts to attribute the conversion offline.

Can I upload offline conversions retroactively for historical campaigns?

Yes, provided the original ad clicks occurred within the past 90 days and your CRM successfully recorded the corresponding gclid or hashed customer credentials at the time of the initial form submission. Uploads for clicks older than 90 days will be rejected by the API.