One lead, followed from the click to the CRM and back
First-party tracking, a CRM handoff that keeps its context, and stage signals returned to the ad platforms.
- Ad click Click ID kept in a first-party cookie
- Form submitted event_id 7f3a…c21, Harbourside, preschool
- Platforms notified GA4, Google Ads and Meta count it once
- CRM lead created Source, location and program intact
- Tour scheduled Stage change read from the CRM
- Signal returned Secondary conversion, consent checked
Three signals, one conversion Example record
- Browser event
7f3a…c21 - Server event
7f3a…c21 - CRM record
7f3a…c21
Counted once on every platform
Reconstructed view of one lead. Names, IDs and times are changed.
This is the path every parent inquiry takes through the tracking I built. I replaced the old agency setup with it and I maintain it.
The problem
A form fill is easy to count and hard to trust. The same person can be counted twice, a thank-you page can fire without a real submission, and by the time the lead reaches the CRM nobody knows which campaign or location it belongs to.
What I built
- A first-party event for every inquiry. A WordPress plugin I wrote in PHP gives each inquiry one stable event ID on the server. Duplicates and false positives are blocked before they reach any platform.
- One event, counted once. GA4, Google Ads and Meta all receive the same ID, so each platform counts the lead a single time.
- A handoff that keeps its context. The lead reaches the CRM with its location, program and source attached. I verified the path end to end in production.
- Signals back to the platforms. When the CRM stage changes, for example a tour is scheduled, that stage goes back to Google and Meta as a secondary conversion. Each one is consent-checked and sits behind a kill switch.
Where it stops
The returned signals are secondary conversions in a controlled rollout. They are not used for bidding yet, and I don’t claim closed-loop revenue attribution.
Public reference code
An open-source WordPress reference implementation of the first-party attribution and shared event ID pattern is at wp-conversion-tracking on GitHub.
Stack
PHP, WordPress, Gravity Forms, GTM web and server, GA4, Google Ads API, Meta Conversions API, Cloud Run, BigQuery.