Marketing

3 min

Every lead carries its real source

Every lead carrying its real source

AttributionPaid mediaGoHighLevelMetaGoogle Ads

A Google Ads Performance Max campaign panel
Lead source recorded
click to contract
Attribution fields validated
18 of 18
Live ads tagged
22 of 22

TL;DR

Leads arrived with no reliable source, so nobody could name the ad behind a signed contract. 22 of 22 live ads were tagged and 18 of 18 attribution fields validated on a real payload. Source is now recorded from click through to signed contract, and the join survives a campaign rename.

Context and discovery

The contractor was spending on Meta and Google every month and could not say which ads produced its leads. The leads arrived in the CRM with a name, a phone number and nothing else.

There is no checkout in this business. The lead is the conversion, so an untracked lead is an untracked sale, and every budget decision was being made on platform-reported leads rather than on contracts signed.

The assumption was that this was a reporting gap. What we found was three separate failures stacked on each other, each hiding the next, so fixing any one of them alone would have produced no visible change and looked like wasted work.

What we found

The ads were not consistently tagged, so even perfect capture would have had nothing to read.

Where tags did exist they were keyed on campaign names. A name looks like a stable identifier and is not. It gets edited by whoever is in the account that afternoon, and every historical record pointing at the old name quietly detaches. The data does not go missing; it goes wrong, which is harder to notice.

The CRM had nowhere to put a source even if one arrived. With no attribution fields, the information had no destination.

And capture itself ran too late. Any script that reads the URL after a redirect has fired reads the wrong URL, and lead-generation landing pages redirect constantly. This is the failure that makes the other two invisible, because the account looks instrumented and reports nothing useful.

The objective

The objective was that every lead arrives carrying both its first and its last touch, that the join survives a campaign being renamed, and that the whole chain is validated on a real submission rather than on a test one.

The constraint was honesty about browser limits. Any model that reports confidently past what the browser actually retains is worse than one that reports a gap.

What we did

Tagging on every live ad, keyed on IDs rather than names. An ad ID does not change when somebody renames a campaign, so the join holds through the inevitable account tidy-up. All 22 live ads were tagged and then read back from the platforms rather than ticked off a list.

Eighteen attribution fields in the CRM, covering first touch and last touch separately, because they answer different questions. First touch names what created the demand. Last touch names what closed it. An account that records only the second defunds the campaigns that fill the top of its own funnel.

A capture script that runs before anything can redirect. It reads the URL parameters at the earliest possible moment, stores them, and attaches them to the form payload at submit, so the source survives the hop between landing page and form.

Every field validated on a real payload, with real values from a real submission, rather than on a test send with clean inputs.

We chose not to engineer around Safari’s storage limits. Safari clears script-written storage after seven days, so a 90-day first-touch model on that browser reports with confidence and is wrong. The limit is stated instead: on Safari, first touch is reliable for roughly a week, after which the lead carries last touch and an honest blank. A client who knows where the data stops can decide at the edge of it. A client who believes the data is complete cannot.

The results

22 of 22 live ads tagged and 18 of 18 attribution fields validated on a real payload, both read back from the platforms and the CRM rather than ticked off a checklist.

Every lead now arrives carrying the ad or keyword that produced it, and the join survives a campaign rename.

The consequence is not a better report. It is a different decision rule. With source recorded from click through to signed contract, the account could finally be managed on cost per signed contract rather than on cost per lead. That is the figure that settled whether a cheap lead source was worth scaling, and it was not available before this work.

The join also survives the account’s own housekeeping. Keyed on identifiers rather than names, a campaign can be renamed, restructured or duplicated without detaching the history behind it, which is how an attribution model stays true in its second year rather than only in its first.