# Google Ads offline conversions for WooCommerce: Data Manager API guide

> Source: https://ththeme.net/woocommerce-google-ads-offline-conversions-data-manager-api/ | Updated: 2026-12-05 | License (data): CC BY 4.0

To report WooCommerce quote-to-close orders, phone sales or net-30 invoices back to Google Ads in 2026 and 2027, build on **Google's Data Manager API** rather than legacy Google Ads API offline upload integrations (which stopped onboarding new adopters on June 15, 2026). Capture `gclid`, `gbraid` and `wbraid` on landing, store them in WooCommerce order metadata, SHA-256 hash normalized buyer email/phone for enhanced conversions, and upload only confirmed revenue.

## Key facts
- Since June 15, 2026, new offline conversion API adopters use Google's Data Manager API instead of the legacy Google Ads API endpoint
- Capture all three click identifiers: gclid (standard), gbraid (iOS app-to-web) and wbraid (iOS web-to-web)
- Normalize emails (lowercase, trim whitespace, remove dots before @ on gmail.com) before SHA-256 hashing
- Include your WooCommerce order_id as transaction_id to deduplicate against browser tags
- Exclude canceled, refunded and draft orders so Smart Bidding optimizes for net revenue, not leads

## Browser pixel vs server-side offline conversion upload for WooCommerce

| Dimension | Browser conversion tag | Offline / Data Manager API upload |
| --- | --- | --- |
| Ad blockers and ITP | Drops events whenever scripts or cookies are blocked | Not blocked by browser extensions |
| Request-a-quote / net-30 invoices | Fires on form submit before real order value is known | Uploads exact paid invoice total when order settles |
| Deduplication key | transaction_id on thank-you page | Same WooCommerce order_id sent via API |
| Refund adjustments | Requires separate adjustment upload | Can send retractions and restatements from order hooks |

## 1. Capture and persist click identifiers in WordPress

Browser query parameters disappear the moment a shopper clicks a second page. Store incoming click IDs on the visitor's first hit using a first-party cookie (respecting Consent Mode choices) for up to 90 days:

- `gclid`: standard Google Ads click identifier.
- `wbraid` and `gbraid`: privacy-preserving identifiers used heavily on iOS traffic where `gclid` is stripped.
- **UTM parameters:** capture `utm_source`, `utm_medium` and `utm_campaign` alongside the click ID for internal CRM auditing.

When a visitor submits a [request-a-quote form](https://ththeme.net/best-woocommerce-request-a-quote-plugins/) or completes checkout, copy those cookies into hidden fields or WooCommerce HPOS order meta via `$order->update_meta_data()`.

## 2. Normalize and hash user identifiers properly

When no click ID is present (or alongside `gclid` for Enhanced Conversions for Leads), Google matches normalized, hex-encoded SHA-256 customer fields:

- **Email:** strip leading and trailing spaces, convert to lowercase, and strip dots in the local part for `gmail.com` and `googlemail.com` addresses before hashing.
- **Phone:** format strictly in E.164 (for example, `+13055550199`) with no spaces, dashes or parentheses before hashing.
- **Never double-hash** or hash placeholder values such as `n/a` or empty strings; omit missing fields instead.

## 3. Trigger uploads on real revenue events

Hook your upload queue to WooCommerce's `woocommerce_order_status_completed` or payment-captured webhook (never raw draft creation). Run API requests asynchronously through **Action Scheduler** (bundled inside WooCommerce) so checkout speed is never slowed by an external network call.

- Send the exact UTC conversion timestamp formatted with timezone offset (RFC 3339), strictly after the original click time.
- Send subtotal ex-tax and ex-shipping consistently (or gross consistently) so Smart Bidding ROAS targets compare like with like.
- Pass WooCommerce's unique order ID as the transaction ID so duplicate retries do not inflate revenue.

If your store relies on HubSpot, Salesforce or custom quoting pipelines and conversion counts do not reconcile with Google Ads, [AttributionRepair](https://attributionrepair.com/) (same owner as THTheme) specializes in Google Data Manager API, server-side GTM and ad-to-CRM attribution repair (starting with a $1,000 audit).

## 4. Monitor match rate and consent flags

Attach explicit consent status flags (`ad_user_data` and `ad_personalization`) for EEA/UK users per Google's EU user consent policy. After enabling daily or hourly uploads, audit Google Ads diagnostics weekly for rejected timestamps, expired click windows (typically 90 days), formatting errors and duplicate transaction IDs.

For browser-plus-server setup covering Meta alongside Google, read [server-side GTM and Meta CAPI for WooCommerce](https://ththeme.net/woocommerce-server-side-gtm-meta-capi/).

## FAQ

### Why not use the older Google Ads API offline conversion tutorial?

Google's documentation directs new offline-conversion integrations to the Data Manager API after Google Ads API stopped onboarding new offline-conversion adopters on June 15, 2026.

### Is WooCommerce HPOS compatible with storing gclid in order meta?

Yes, as long as your code uses WooCommerce CRUD methods ($order->update_meta_data and $order->get_meta) followed by $order->save(), rather than writing directly to wp_postmeta.

### Should I upload conversions if I already have the Google Ads browser tag installed?

Only if you pass the identical order_id as transaction_id for deduplication, or separate quote submissions (secondary) from confirmed paid orders (primary) so conversions are not double-counted.

### Do I need consent before uploading hashed customer email addresses?

Follow applicable privacy laws and Google's EU user consent policy for EEA/UK traffic by storing the visitor's consent state at order time and transmitting accurate consent flags with each API event.

## Sources
- [Google Developers: Data Manager API](https://developers.google.com/data-manager)
- [Google Ads Help: About offline conversion imports](https://support.google.com/google-ads/answer/2998031)
- [WooCommerce Developer Docs: High-Performance Order Storage (HPOS)](https://developer.woocommerce.com/docs/features/high-performance-order-storage/)
- [Action Scheduler (bundled with WooCommerce)](https://actionscheduler.org/)
