How to track affiliate conversions in Google Ads

Por Click Defender21 de outubro de 20265 min de leitura

Tracking affiliate conversions in Google Ads means importing sales that happen on a third-party checkout (Hotmart, ClickBank, BuyGoods, etc.) back into your Google Ads account so the algorithm learns which clicks lead to purchases and optimizes accordingly. Without this data, Smart Bidding treats every click equally — and your cost per acquisition stays high.

The core challenge for affiliates

Google Ads conversion tracking was designed for advertisers who own the entire funnel: the ad, the landing page, and the checkout. Affiliates, by contrast, send traffic to someone else's checkout page. You cannot install the Google conversion tag on a page you do not control. This creates a data gap: Google sees the click but never sees the sale.

The solution is offline conversion import — sending conversion data back to Google after the sale happens, matched by the original click identifier (GCLID, wbraid, or gbraid).

Three methods to import affiliate conversions

1. Manual CSV upload

The simplest approach. You export your conversions from your tracker into a CSV file formatted to Google's specification, then upload it manually in Google Ads under Goals > Conversions > Uploads.

  • Pros: No API setup required. Works with any Google Ads account.
  • Cons: Manual effort every time. Data reaches Google hours or days after the sale. Does not support wbraid/gbraid (YouTube, Demand Gen campaigns).

The CSV must include at minimum: Google Click ID, Conversion Name, Conversion Time, Conversion Value, and Conversion Currency. The conversion action name must match exactly what you created in Google Ads.

2. Scheduled URL fetch (Google Data Manager)

You provide Google with a URL that returns a CSV file. Google fetches it automatically on a daily schedule via Tools > Data Manager > Connect Product > HTTPS. This eliminates the manual upload step but still runs only once per day.

  • Pros: Set-and-forget after initial setup. No manual file handling.
  • Cons: Daily frequency limits optimization speed. Still GCLID-only (no wbraid/gbraid).

3. API-based import (Offline Conversion Import API)

The most powerful method. Your tracker sends each conversion to the Google Ads API in near real-time — typically within minutes of the sale. This is the only method that supports all click identifiers: GCLID for Search and Shopping, plus wbraid and gbraid for YouTube, Demand Gen, and app campaigns.

  • Pros: Near real-time data. Supports all campaign types. Fully automated. Enables Enhanced Conversions.
  • Cons: Requires API credentials and a tracker or tool that implements the integration.

Why the API method wins

Google's Smart Bidding algorithms learn faster when conversion data arrives sooner. A study by Google found that advertisers using real-time conversion imports saw up to 20% lower CPA compared to those uploading daily. The reasons are straightforward:

  1. Faster feedback loop — The algorithm adjusts bids within hours instead of waiting a full day.
  2. Complete attribution — YouTube and Demand Gen clicks (which use wbraid/gbraid instead of GCLID) can only be attributed via the API.
  3. Automated retries — If a conversion upload fails, the API-based system retries without human intervention.
  4. Conversion value — Real sale amounts flow in automatically, enabling value-based bidding (Maximize Conversion Value, Target ROAS).

Enhanced Conversions for leads

Google's Enhanced Conversions for Leads feature lets you send hashed user data (email, phone) alongside the GCLID. This improves match rates, especially when a conversion happens days after the initial click and the GCLID window is closing. For affiliates, this is particularly valuable because:

  • Some affiliate networks provide buyer email in the postback, which can be hashed and sent to Google.
  • It extends the attribution window beyond the standard GCLID expiration.
  • It works in conjunction with the Offline Conversion Import API.

Step-by-step: setting up API-based tracking

The exact steps depend on which tracker you use, but the general flow is:

  1. Create a conversion action in Google Ads: Goals > Conversions > Summary > New conversion action > Import > Other data sources > Track conversions from clicks. Set category to Purchase, counting to All, and use different values per conversion.
  2. Connect your Google Ads account to your tracker via OAuth. This grants the tracker permission to upload conversions on your behalf.
  3. Link the conversion action to your campaign inside the tracker. Map your tracker's campaign to the Google Ads conversion action name.
  4. Capture the click ID on your landing page. Your tracker's script must read the gclid, wbraid, or gbraid parameter from the URL and store it in the visitor's session.
  5. Receive the postback from the affiliate network. When a sale happens, the network fires a postback to your tracker containing the transaction ID, sale amount, and the sub-ID that carries the click identifier.
  6. Upload the conversion via API. The tracker matches the postback to the stored session, retrieves the click ID, and sends the conversion to Google Ads.

Click Defender automates steps 2 through 6: once you connect your Google Ads account and link a conversion action to your campaign, every sale is pushed to Google within minutes — including YouTube and Demand Gen conversions that only work via API.

Common pitfalls

  • Mismatched conversion action names — The name in your tracker must be character-for-character identical to the name in Google Ads. A trailing space or different capitalization will cause the upload to fail silently.
  • GCLID expiration — GCLIDs expire after 90 days. If a conversion happens after that window, it cannot be attributed. Enhanced Conversions can help extend attribution.
  • Missing click ID passthrough — If your landing page does not pass the gclid/wbraid/gbraid to the affiliate link, the conversion cannot be matched. Verify your tracking script decorates outbound links.
  • Duplicate conversions — Uploading the same GCLID + conversion time combination twice will not create a duplicate (Google deduplicates), but uploading the same sale with a different timestamp will.

The single most impactful thing an affiliate can do for Google Ads performance is to send real conversion data back to the algorithm. The method matters less than the act of doing it — but the API method does it fastest and most completely.

Artigos relacionados