Quick answer
Use PostHog’s Google Ads Conversions destination for conversions that happen at least six hours after an ad click. Google rejects earlier uploads with TOO_RECENT_EVENT. PostHog sends the event when it arrives and does not retry that rejection automatically. If it was sent too early, rerun the failed invocation once the click is old enough. Check the destination’s invocation logs for the error. (+ / + / +)
That makes it a fit for qualified leads, CRM stages, trial-to-paid, renewals and offline sales that fall within Google’s conversion window. For same-session web purchases, use Google’s own conversion tag. Use a separate import action for later outcomes, and choose one bidding action for each outcome.
Google closed this upload endpoint to new adopters on 15 June 2026; existing integrations, such as PostHog’s destination, can continue importing while they move to the Data Manager API. One accepted test upload confirms that your connection still has access. (+)
As of October 2026, the current template posts to Google Ads API v24. Connect your account and add one mapping per conversion action. Each conversion needs a GCLID or supported email/phone identifiers; the identifier-only route also needs the enhanced-conversions setup below. (+)
For the shared prerequisites and a comparison with other platforms, use our overview of PostHog’s ad destinations.
Requirements
We assume you already have PostHog set up and tracking the events you intend to send to Google Ads. Use our event tracking plan guide to define the outcome first. For Shopify purchases, start with our Shopify event setup.
- Access to the Google Ads account and an enabled Import from clicks conversion action, API type
UPLOAD_CLICKS. (+) - A click that is at least six hours old when uploaded, and a conversion action created at least six hours before the first upload. These are separate restrictions; PostHog does not retry Google’s too-recent-click rejection. (+ / +)
- For click-based uploads, auto-tagging enabled and the click ID retained from landing to conversion. Check capture and your Final URL suffix with our ad URL parameters guide. (+)
- If you send email or phone, enhanced conversions switched on and Google’s customer data terms accepted. Since June 2026 this is one on/off setting; there is no longer a method selector for “Google Ads API”. (+)
- A recorded decision about sharing conversion data with Google. Configure consent and destination filters before enabling delivery. (+)
Use this through PostHog’s existing integration. A new Google Cloud project cannot start using UploadClickConversions after the 15 June 2026 closure; a new custom integration should use the Data Manager migration guide. (+)
For an existing PostHog destination, inspect its own source for /v24/ before testing. Destinations retain their saved code, so an old or manually edited copy can still call an unsupported version. (+ / +)
This destination is experimental and has no official customer support. Verify delivery yourself before relying on it for bidding. (+)
Create the Google Ads conversion action
Create the import action before configuring the mapping. In Google Ads, open Goals → Summary → + Create conversion action → Conversions offline → Add data source → Continue. Choose CRMs, files, or other data sources, then Track conversions from clicks. Select the category, name the action for the business outcome and finish with Save and continue. (+)
PostHog recommends “Skip this step and set up a data source later”, but Google warns that offline measurement is inactive until a source is connected. Whichever you choose at that prompt, setup is complete only when the action is enabled with type UPLOAD_CLICKS and a test upload is accepted. (+ / +)
- Primary or secondary: primary actions feed bidding when their goal is used by the campaign; secondary actions are for observation, except in custom goals, where they can still feed bidding. (+) Google recommends secondary for the first two to three weeks of a new enhanced-conversions-for-leads action. (+)
- Count: choose Every for separate purchases or renewals, or One when you want one lead per ad click. Every is the default for import actions. (+)
- Value: set the action’s default deliberately. Google uses it when an upload’s value is missing or invalid; an action configured to always use its default overrides uploaded values. (+)
You need to have the conversion action created at least six hours in advance. Otherwise Google returns TOO_RECENT_CONVERSION_ACTION. Waiting for the action does not satisfy the separate six-hour wait after each ad click. (+)
Create the PostHog destination
To start, open Destinations in PostHog and click New destination. Search for Google Ads Conversions and choose + Create. (+ / +)
Google Ads can usually be handled in one destination by adding multiple mappings; one per conversion action. They share the connected account and Customer ID, while each mapping selects its own action. (+)
Keep the click-ID gate unless Google’s tag collects user-provided data on your site with enhanced conversions enabled. Google requires a GCLID when no such tag is present. With that tag and the required account setup, a mapping can instead accept an email or phone identifier when the click ID is missing. (+)
Apply the gate to the same properties your mapping actually sends: a click ID must be non-empty and unmasked; the exception needs a populated email or phone input. A filter that accepts an email does not add that email to the upload.
Switch on Filter out internal and test users and check your project’s exclusions. Use person-property filters for the shared list; behavioral cohorts cannot be evaluated by real-time destinations. (+)
Browser opt-out stops capture on that client; it does not stop a separate backend or billing webhook from sending events. Carry the visitor’s advertising-consent decision onto server-side events and require it in the destination’s filters. (+) For example, record an event property named ad_user_data_consent and require GRANTED, using your consent tool’s actual decision. This is an example property name, not a PostHog default.

Connect your Google Ads account
Connect the Google account that can access the intended Ads account through PostHog’s OAuth connection, then select the Ads customer in the Customer ID picker. The picker also lists enabled accounts beneath accessible manager (MCC) accounts; choose the customer that owns the conversion setup. Keep private OAuth tokens out of browser code. (+ / +)
To find the ten-digit customer ID, open the account menu in Google Ads. It appears beneath the account name, as the testing account below shows.


Mappings
Here, you configure which PostHog events will trigger which Google conversion actions. PostHog provides a default Conversion mapping that you can edit or duplicate for each outcome. (+)

Match events and actions: Select the event that records the business outcome. A checkout-button click can precede a failed payment; map the event that confirms the paid order or the qualified lead. If there are multiple events, define them as an action first to make it easier to select here. (+)
Conversion action: Select the enabled import action you created. The picker does not filter by action type, so a website-tag or GA4 action can appear even though it fails every upload with INVALID_CONVERSION_ACTION_TYPE. (+ / +)
Google Click ID (gclid): PostHog prefills {person.properties.gclid ?? person.properties.$initial_gclid}. This reads the person’s latest value, then their first-touch value. A later campaign visit can replace or clear the latest GCLID, leaving the fallback pointing at the first click. (+)
For browser events, we use the converting session’s click first: {event.properties.$session_entry_gclid ?? person.properties.gclid ?? person.properties.$initial_gclid}. PostHog captures session-entry attribution on browser events, so this keeps that session’s click ahead of person-level fallbacks. (+)
Server-side events do not automatically carry those browser session properties, so this expression falls back to the person. For a delayed CRM or billing event, retain the click associated with that lead or purchase and map that stored value when the person’s fallback could refer to another journey. If the converting session has no ad click, inspect the fallback rather than assuming it belongs to the conversion.
For example, if your backend stores the click with the lead and sends a qualified_lead event carrying gclid and lead_id, captured with the qualification time as its timestamp, map Google Click ID to {event.properties.gclid} and Order ID to {event.properties.lead_id}. The property names are illustrative. Reading the click from the event also keeps a later rerun on the same click, because a rerun reads the person again. (+)
With mask_personal_data_properties enabled, captured click IDs become <masked>, which is not a usable GCLID. PostHog also captures gbraid and wbraid, used for some iOS traffic, but the native destination does not send either. (+) See when to edit the source for those fields.
Conversion Date Time: This field represents the exact date and time when the conversion occurred. PostHog prefills {formatDateTime(toDateTime(event.timestamp), '%Y-%m-%d %H:%i:%S')}+00:00, which formats the event’s own timestamp in UTC and matches Google’s required format. The conversion must be after the click; preserve its original time on retries. (+)
Upload within 90 days of the associated click, or 63 days for enhanced conversions for leads, and within the action’s click-through conversion window. (+) A click outside that window produces EXPIRED_EVENT.
Value, currency and order ID
These fields are optional in the template. Map them when you need revenue reporting and a transaction ID that survives retries.
Conversion value: This represents the revenue generated from the conversion. Map it to the appropriate property in PostHog, such as {event.properties.price} or {event.properties.total_amount}, depending on your implementation. Send the amount in the currency’s units, not its minor units: an illustrative EUR 25 purchase has value 25, not 2500.
Currency code: This field defines the ISO 4217 currency code, such as USD or EUR, for the conversion value. Map it to the appropriate PostHog property, typically {event.properties.currency}. The native template leaves both value and currency blank until you map them. (+ / +)
Check the action’s value settings as well: its default applies when the uploaded value is missing or invalid, and “always use default” overrides the value and currency you send. (+)
Order ID: This is the unique transaction identifier for the conversion. It must be unique per conversion action to avoid duplication. Map it to a transaction-level property in PostHog, such as {event.properties.order_id} or {event.properties.transaction_id}. (+)
Your application’s customer ID identifies a person, so reusing it as the transaction ID for every purchase can suppress later legitimate conversions. Do not use {event.distinct_id} for a repeatable purchase action. Use the same order ID for retries of the same transaction.
A retry with an already-recorded order ID is not counted again; it produces ORDER_ID_ALREADY_IN_USE. That rule holds within one conversion action: the same order reported by a website tag action and by this import action counts in both, so use only one of these actions for campaign bidding, including custom goals. Keep personal data out of order IDs, or Google rejects them with ORDER_ID_CONTAINS_PII. (+)
Email and phone
Use the native Email address and Phone number mapping inputs. Email defaults to {person.properties.email}; phone is blank until you map it. Supply unhashed values: the template trims, lowercases and SHA-256 hashes them itself, sending identifiers alongside the GCLID when both exist. It skips the event without calling Google if neither a GCLID nor an identifier is present. (+)
Do not pre-hash these native inputs: the template would hash the hash. Turning on enhanced conversions in Google Ads does not populate the inputs for you. If the account is not configured for customer identifiers, clear the default email input and leave phone blank.
Prepare Gmail and Googlemail addresses upstream: remove dots and the + suffix from the username before @. Keep those characters for other email domains. Store phone numbers in E.164 format, including the country code and leading +, without spaces, dashes or parentheses. The template does neither Gmail normalization nor phone formatting. (+)
A destination reads person properties as they exist when the event is processed; an identify call that arrives later cannot supply them to that run. Identify before the conversion, or put the matching data on the conversion event and map it from there, such as {event.properties.email ?? person.properties.email} for email. (+)
Click uploads accept only hashed_email and hashed_phone_number as user identifiers. Names in address_info return an error. (+) Do not add the old IP input as a general matching field: it has been restricted for new adopters since February 2026. (+) IP matching is unsupported for users in the EEA, UK and Switzerland. (+)
For an allowlisted integration that uses IP, it must be the visitor’s device IP at landing, not your server’s IP. The native template does not send this field.
Consent
The native template sends no consent field. (+) Google warns that conversions without it may not be attributable. A successful upload therefore does not establish that Google can use the conversion. (+)
Either configure Tools → Data Manager → Consent settings → Default consent settings in Google Ads, or supply consent on each conversion. Use an account default only when it accurately describes the data you send; retain the visitor’s decision in the destination filter for backend and webhook events. (+)
For per-conversion consent, open show source code and add an input variable named adUserDataConsent, with your recorded decision as its value, such as {event.properties.ad_user_data_consent}. In the source, after the optional conversion fields and before let body :=, add conversion.consent := {'ad_user_data': inputs.adUserDataConsent}. Require a recorded GRANTED or DENIED value before that code runs; never hardcode GRANTED for everyone.
Use consent.ad_user_data for click conversions. The ad_personalization field is supported by other upload services, not this one. (+)
When to edit the source code
Edit the source when you need per-conversion consent or gbraid/wbraid. Google uses those click parameters for some iOS journeys, but the current template only sends gclid. For a braid, add its mapping input and payload field and update the no-identifier skip condition so a braid-only event is sent. Do not put a braid value into the GCLID field. (+ / +)
Our February implementation added customer identifiers before PostHog’s template supported them; native email and phone support arrived in July 2026, so those fields no longer need the custom snippet. (+)
Never send gbraid and wbraid together, and use an action that counts Every: one-per-click counting is not permitted with braids. (+) Follow Google’s click upload requirements when changing the payload.
Check the request URL in the source: the current template uses /v24/. v21 stopped accepting requests on 5 August 2026 and v22 on 7 October 2026. (+ / +) Google lists May 2027 as v24’s tentative sunset, so custom code needs another version check before then. (+)
If you use Reset to template, save any custom behavior first: it replaces your code. (+) It retains existing mappings, so an older destination may still lack the native Email address and Phone number inputs. Add a new mapping from the current template, copy the old mapping’s filters and values into it, and delete the old mapping before saving; otherwise both send. (+)
Keep the template’s partial-failure check when editing. It turns Google’s row-level errors into destination errors, including rejected clicks and duplicates. Watch the destination’s error rate: persistent code errors can lead to quarantine and automatic disabling. (+)
Verify and troubleshoot
Test before you start
Before going live, test the configuration to confirm that conversions are being sent correctly and no errors appear in the destination logs. After a deliberate test upload succeeds, enable the destination and monitor its invocation logs.
In the test panel, Make real HTTP requests is on by default: testing can upload a real conversion. Turn it off while checking field evaluation; turn it on only for a deliberate upload to the action you intend to test. (+ / +)
- Choose an eligible conversion with a real ad click at least six hours old and an action created at least six hours earlier. Check its original time, order ID, value, currency, identifiers and recorded consent.
- Inspect the destination’s invocation logs and metrics. Google can return a successful HTTP response with
partialFailureErrorin the body; the template surfaces its message as a destination error. (+ / +) - In Google Ads, open Goals → Conversions → Summary, find the action’s status, hover its offline data quality and choose Go to diagnostics. (+) For enhanced conversions for leads, also use the Summary page’s Diagnostics tab. (+)
- Check delivery in PostHog’s logs, matching in Google’s diagnostics and attribution in its conversion reports as three separate outcomes. An accepted import does not guarantee attribution. (+)
Last-click import statistics take about three hours to appear; conversion processing typically takes under twelve hours, and up to 72 hours for GBRAID/WBRAID-keyed conversions. The last case applies only if you added braid support. Standard reports use the ad interaction date; use All conv. (by conv. time) to check the conversion date. (+ / +)
Do not send the same conversion through two PostHog destinations with different Customer IDs: Google warns that uploads through different accounts can create duplicates. (+)
Fix the returned error
Match the message in the destination log to the rows below. The template logs Google’s message text, which follows the error descriptions in Google’s reference, rather than the error names shown here. (+)
| Error | What to do |
|---|---|
TOO_RECENT_EVENT | The click is under six hours old. PostHog does not retry it; re-upload later with the original conversion time. |
TOO_RECENT_CONVERSION_ACTION | Wait at least six hours after creating the action before uploading. |
INVALID_CONVERSION_ACTION_TYPE | Select an enabled Import from clicks action, type UPLOAD_CLICKS. |
EXPIRED_EVENT | The click is outside the action’s window. Check its date and upload deadline; keep the actual conversion time. |
ORDER_ID_ALREADY_IN_USE | The ID was already recorded. Confirm the earlier upload succeeded; change the ID only for a separate transaction. |
CLICK_CONVERSION_ALREADY_EXISTS | The click and conversion time were already recorded. Confirm the earlier upload succeeded; keep a retry’s original time. |
UNPARSEABLE_GCLID | Check the mapped GCLID. Exclude <masked>; review your capture policy before changing it. |
CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS | Accept the customer data terms. With cross-account tracking, use the conversion-tracking manager account. |
CUSTOMER_NOT_ENABLED_ENHANCED_CONVERSIONS_FOR_LEADS | Turn on enhanced conversions before sending email or phone identifiers. |
CLICK_NOT_FOUND | No ad click matched the identifiers. Check tag collection and normalization for conversions you expected to attribute. |
CLICK_NOT_FOUND is different: Google counts the upload as successful and reports the non-match as a warning, which can occur for conversions from organic traffic or another channel, while PostHog’s template still logs it as an error. Investigate when it affects most conversions, when conversions you expected Google to credit are missing, or when those errors build up in the destination’s health. (+)
To recover conversions rejected with TOO_RECENT_EVENT, wait until their clicks are more than six hours old, then rerun the failed invocations from the destination’s invocation history; the destination must be enabled. Keep the original conversion-time and order-ID mappings when rerunning: the inputs are rebuilt from the destination’s current configuration and the person as PostHog then holds it, so map the click from the event rather than the person. (+ / +)
Frequently asked questions
Can I use this destination for same-session purchases?
Use Google’s conversion tag for those purchases. Google rejects uploads whose click is under six hours old, and PostHog does not retry that rejection automatically; rerunning each failed invocation later works but is manual. Keep the import action for later outcomes, such as a qualified lead or trial-to-paid conversion. (+ / +)
Can I upload a conversion without a GCLID?
Yes, with supported email or phone identifiers and an eligible enhanced-conversions setup. Keep the GCLID filter if no Google tag collects user-provided data on your site; Google requires the click ID in that arrangement. A populated PostHog email alone does not remove that requirement. (+)
Why does Google Ads show fewer conversions than PostHog?
PostHog counts your captured events; Google reports the conversions it can attribute under the action’s settings. Check destination errors first, then consent, click matching, the conversion window, duplicate IDs, the “One” count setting and reporting dates. An accepted upload is not proof of attribution. (+) Use our conversion tracking audit to reconcile the two sets of numbers.
