tracking_reconcile
Reports and briefs read low risk
Part of the Tracking Audit Agent.
What it does
Compare one client's conversions across Google Ads, GA4 and HubSpot for the matching the user confirmed: per mapping row, 30-day totals ending two days ago (the newest days still fill in), the gap between each pair of sources and its likely reason when it is above 20% and the larger side has at least 10 (reporting delay for CRM-upload actions, consent and ad blockers for a lower GA4, lost click ids for a lower HubSpot, duplicates when one side is about twice the other, view-through and modelled conversions for a higher Google Ads). Google Ads: all conversions by conversion date for the mapped action ids. GA4: key events for the mapped event names from sessions of this Google Ads account (both id formats); not verified when GA4 cannot tie key events to the account or withholds low numbers. HubSpot (optional): paid-search leads, form leads or booking leads by create date, or contacts that entered SQL in the window with a Google click id (to compare with the CRM-upload action). Returns {success, data:{customer_id, property_id, window, rows:[{label, Google Ads, GA4, HubSpot, hubspot_set, lagging_upload_action}], checks, check_counts}, warnings}. Read-only; no personal data.
When to use it
Use in a tracking audit (after tracking_audit's matching step) to reconcile conversions between Google Ads, GA4 and the CRM, or when the user asks why the three disagree.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | The client's Google Ads account, 10 digits. |
mapping | array<object> | yes | The confirmed matching: [{label, ads_conversion_action_ids:[ids], ga4_event_names:[names], hubspot: paid_leads|form_leads|booking_leads|sql_with_click_id|null}], each row naming at least two sources. |
property_id | string | no | GA4 property id; needed when a row names GA4 events. |
manager_id | string | no | Manager (MCC) id when the account is reached through a manager. |
days | integer | no | Window length, 7 to 90 (default 30), ending two days ago. |
Safeguards
Policy
Read-only comparison of the bearer's own accounts. Each source is labelled; numbers from different platforms are never merged into one figure. A gap is a lead to check with its likely reason, not a proven fault; a source that cannot be read is Not verified, never zero.
Reminder
Confirm the matching with the user first. Day-by-day numbers are not compared (weekends and time zones make them noise). HubSpot counts use HubSpot's own Google click id field.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
invalid_argument | mapping must be a non-empty list of rows naming at least two sources, or customer_id or manager_id is not 10 digits. | Propose the matching from the setup tools, confirm it with the user, then pass it. | no |
manager_account | This is a manager (MCC) account. | Run it on a client account. | no |
Edge cases
- Every gap above 20% is suspected with its likely reason (CRM-upload or GA4 lead-stage actions: uploads arrive late); a mapped Google Ads id the account does not have is not_verified, never 0.
- Below 10 on both sides a row is reported, never judged.