How to Set Up Offline Conversion Imports for Google Ads OCI
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:
- Click Event: The user clicks your search or display ad. Google passes
gclid=EAIaIQobChMI...in the query string. - Form Capture: The user submits a form on your landing page. JavaScript extracts the
gclidfrom the URL or session cookie and writes it into a hidden field in your HTML form. - CRM Storage: Your form handler pushes the user's details (email, phone, name) along with the
gclidinto your CRM (Salesforce, HubSpot, or a custom SQL database). - Lifecycle Event: Weeks later, a sales representative marks the lead as "SQL" or "Closed-Won" and enters the total contract value.
- Upload Batch: Your pipeline uploads the
gclid, the conversion action name, the conversion timestamp, and the conversion dollar value back to Google Ads via API, Data Manager, or SFTP. - Algorithmic Adjustment: Google Ads matches the
gclidback to the original ad impression, keyword, and user contextual signals, retraining the Smart Bidding model to bid higher on similar auctions.
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:
gclid/wbraid/gbraid: The exact string extracted from the landing page URL.lead_created_timestamp: ISO 8601 format with timezone offset (e.g.,2026-10-14T09:30:00-05:00).conversion_time: Timestamp when the prospect hit the milestone stage (e.g., deal closed).hashed_email: SHA-256 normalized email address (lowercase, spaces removed).hashed_phone: SHA-256 normalized phone number in E.164 format (e.g.,+14155552671).deal_value: Dynamic numerical dollar amount representing revenue or stage value.currency_code: Three-letter ISO currency identifier (e.g.,USD,EUR).
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.
- Navigate to Goals > Conversions > Summary in Google Ads.
- Click New conversion action and select Import.
- Select CRMs, files or other data sources, then choose Track conversions from clicks.
- Name the action according to your lifecycle stage (e.g.,
Offline - Sales Qualified LeadorOffline - Closed Won). - Set Value: Select "Use different values for each conversion" and specify a default fallback value (e.g.,
$100). - Set Count: Choose Every for purchase/revenue events, or One for lead/qualification stage transitions.
- Set Click-through conversion window: Match your sales cycle duration (default is 90 days).
- 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:
- Raw Web Lead: $0 (Demote to Secondary action or track for volume only)
- Sales Qualified Lead (SQL): $75 (Calculated as: 15% close rate × $500 average deal value)
- Opportunity / Demo Completed: $200 (Calculated as: 40% close rate × $500 average deal value)
- Closed Won Deal: Actual transaction value pulled directly from CRM contract amount
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:
- Verify that the primary offline conversion action has accumulated at least 30 conversions within the past 30 days.
- Change the offline conversion action's optimization setting from Secondary to Primary.
- Demote the original web form submit conversion action from Primary to Secondary so Smart Bidding stops optimizing for raw form fills.
- 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:
- Week 1: Update form scripts to capture and store
gclid,wbraid, andgbraidin first-party cookies and CRM custom fields. Verify data capture across all primary landing pages. - 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.
- 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.
- 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.