Lead generation
Lead form tracking: connect forms to paid leads
Connect a form submission to its later paid outcome with a stored click ID, clear lead stages, and stable callback IDs. Includes a hypothetical worked example.
Affiliate lead form tracking depends on keeping the same click ID from the form visit through advertiser approval. A submitted form is not necessarily a qualified lead, and a qualified lead is not necessarily payable. Keep those stages separate so raw submissions do not look like paid results.
Tracked attributes callbacks to recorded clicks. It does not qualify leads, decide advertiser approval, or automatically sync the form record into your CRM. The advertiser or CRM must store the click ID and send the later events.
Map the lead path before building the page
Write down who owns each handoff:
Ad → Tracked campaign page → /click/1 → advertiser form
→ lead record with Tracked click ID → qualification
→ advertiser approval → paid-outcome postback
The form may belong to an advertiser, affiliate network, or system you control. Identify its accepted sub-ID field and who will keep that value on the lead record. Do not assume sub1 is a universal field name.
An embedded form needs the same explicit handoff. Placing HTML on a hosted landing page does not automatically attribute its submission or later CRM updates.
Pass the offer-click ID to the form system
Put the advertiser's form URL in the Tracked offer configuration. Insert {{click.id}} into the field the advertiser accepts:
https://advertiser.example/apply?sub1={{click.id}}
Send the landing page button through the campaign-relative tracked click path:
<a href="/click/1">Check eligibility</a>
Tracked generates an offer-click ID and expands the macro in the outgoing offer URL. The form system must save the resulting value with the lead. There is no automatic CRM handoff established by adding this parameter alone.
During setup, inspect the final request and the advertiser's lead record. An empty field or literal {{click.id}} means the handoff is incomplete. For this offer-click path, save the offer-click ID rather than the page impression ID.
Keep personal form data in the system that owns it. A postback needs the click reference and event details, not the applicant's entire submission.
Track form leads with a hidden click-ID field
To track form leads, carry the click ID from the landing URL into a hidden form field, keep it on the lead record, and send it back in the callback. The visitor never sees the field. The form system submits it with the applicant's answers.
The offer URL above delivers the click ID to the advertiser's form page as a query parameter, for example ?sub1=click-123e4567-.... A minimal hidden field on that form, using the advertiser's accepted field name, looks like this:
<form action="/apply" method="post">
<input type="hidden" name="sub1" id="sub1">
<!-- visible lead fields -->
</form>
<script>
document.getElementById("sub1").value =
new URLSearchParams(location.search).get("sub1") || "";
</script>
sub1 is illustrative. Use the field the advertiser or form tool actually stores. Many form tools offer a built-in hidden field that fills from a URL parameter, which does the same job without custom script.
The handoff then has three steps, and the form owner runs all of them:
- Capture: the hidden field reads the click ID from the form page URL.
- Keep: the CRM or lead record saves that value with the lead and preserves it through qualification and approval.
- Return: the later callback sends the stored value to Tracked as
click_id.
Tracked supplies the click ID and receives the callback. It does not write to the CRM or read the hidden field. If the field arrives empty, check that the page URL still contains the parameter after any redirects.
Choose one primary paid outcome
Agree on the business meaning of each stage before wiring callbacks:
| Stage | Example owner | What it establishes |
|---|---|---|
| Submitted | Form system | The form reached the receiving system |
| Qualified | CRM or sales team | The lead met the agreed criteria |
| Approved | Advertiser or network | The lead was accepted for payout |
These are business labels, not built-in Tracked stage values. If the offer has event mappings, the callback's advertiser event name must match exactly, including case.
In the current callback contract:
- An untyped callback is primary. It can carry payout or use the configured campaign/offer payout.
- A nonempty
conversion_typeortypemakes the callback secondary. Its payout is zero, even if the name isapprovedand the request includespayout=25.
If advertiser approval is your paid outcome, send the primary callback only after that real decision. Omit both type fields. Use typed callbacks for earlier stages you want to inspect. The lead-generation conversion guide explains stage definitions and event mapping.
Do not send an untyped submission and another untyped approval for the same payable lead. Distinct event IDs can make them two separate paid conversions. Deduplication cannot decide which business stage you meant to pay for.
Hypothetical example: submission to a paid outcome
This is an implementation-reviewed illustration, not customer results or a tested workflow. The domain, IDs, and $25 payout are synthetic. They are not a default payout or evidence of money received. No example requests were executed.
Suppose an advertiser pays only for an approved lead. It accepts sub1 and has configured exact advertiser event names submitted and qualified for the earlier stages.
1. Keep the click ID on the lead
The example offer URL above expands {{click.id}} to:
click-123e4567-e89b-42d3-a456-426614174000
The visitor reaches advertiser.example/apply with that value in sub1. The advertiser stores it on the synthetic lead record lead-demo-1001. Its form or CRM must preserve it through every later stage.
2. Report the submission without payout
After receiving the form, the advertiser sends a request to /postback on the Tracked domain serving the campaign. These tables show query fields, not executable URLs.
| Submission field | Illustrative value |
|---|---|
click_id | The stored synthetic click ID above |
conversion_type | submitted |
conversion_id | lead-demo-1001-submitted |
This is a secondary event with zero payout. It describes a submission, not advertiser approval.
3. Report qualification with a separate event ID
When the lead meets the advertiser's qualification criteria, its system sends another /postback request:
| Qualification field | Illustrative value |
|---|---|
click_id | The same stored click ID |
type | qualified |
conversion_id | lead-demo-1001-qualified |
This is also secondary with zero payout. Qualification alone must not trigger the paid callback in this example.
4. Record the paid outcome after advertiser approval
Only after the advertiser actually approves the lead for payout does its system send the primary /postback request:
| Approval field | Illustrative value |
|---|---|
click_id | The same stored click ID |
conversion_id | approval-demo-1001 |
payout | 25.00 |
conversion_type and type | Both omitted |
This untyped callback is the primary conversion and carries the illustrative $25 payout, subject to storage and attribution checks. Alternatively, payout can resolve from the configured campaign/offer when the callback omits it.
The approval happened in the advertiser's system before this request. Tracked does not infer that decision from the amount or the missing type fields. Recording a payout also does not prove the advertiser has settled payment.
Give each stage a stable retry ID
Use a distinct conversion_id for each logical stage. If delivery fails, retry that stage with the same ID. Do not generate a fresh ID on every attempt or reuse the submission ID for qualification or approval.
In the example, a repeated approval delivery keeps approval-demo-1001. A genuinely different payable outcome needs its own identity and an agreed business reason to count separately.
An explicit conversion_id provides deduplication identity. Without an explicit event identity, the fallback uses the click and event type in a 60-second time bucket. A delayed retry in another bucket may count again. Do not rely on that fallback for long-running lead workflows.
Verify the stored event, not just the response
For your own setup, follow one identifiable lead through the handoffs. Confirm that the advertiser stored the correct click ID and returned it as click_id. Then inspect the resulting event under the expected click, campaign, page, and offer in Tracked.
A 200 response alone does not prove persistence or advertiser approval. Collection policy can return 200 without storing an event, and writes run asynchronously. Check the stored result and the advertiser's decision record separately. The postback guide covers callback verification in more detail.
Diagnose the first missing handoff
- Form visits but no offer clicks: check the landing page button's
/click/Ntarget. - Offer clicks but no advertiser ID: check the offer macro and the advertiser's accepted field.
- Stored ID but no matched event: inspect callback delivery,
click_id, event mappings, and the matched journey. - Submissions but no approvals: confirm the advertiser made an approval decision and sent its callback with the stored ID.
- Approval event but zero payout: check for a nonempty
conversion_typeortype, includingapproved. - Too many paid conversions: look for untyped early-stage callbacks or retries with changing event IDs.
A busy form can hide a broken approval path. Find the first missing handoff before treating submitted leads as paid campaign results.
Start free to set up your lead-form campaign. Agree on the advertiser's click field and paid outcome before connecting callbacks.
Frequently asked questions
How do I track form leads back to the ad click?
Pass Tracked's offer-click ID to the form in the advertiser's accepted URL field. Capture it in a hidden form input and keep it on the lead record. When the lead reaches a stage you report, the form or CRM owner sends a callback with that value as click_id. Tracked matches it to the recorded click, campaign, page, and offer.
Does Tracked automatically track every form submission on a hosted page?
No. The form system must preserve the offer-click ID and send a matching callback. Hosting the form does not automatically sync a CRM record or turn a submission into an approved lead.
Are submitted, qualified, and approved built-in stages?
No. They are example business labels. If your offer uses event mappings, match the configured advertiser event name exactly, including case. Qualified and qualified are not interchangeable.
Why does type=approved record zero payout?
Any nonempty type or conversion_type makes the callback secondary, regardless of its name or payout parameter. For a paid approval, omit both fields and send the primary callback only after actual advertiser approval.
Should every stage use the same conversion_id?
No. Use distinct stable IDs for submission, qualification, and the paid outcome. Reuse an ID only when retrying that same logical stage. Without explicit event identity, the 60-second fallback can allow delayed retries to count again.
Does a 200 postback response prove approval or storage?
No. Approval belongs to the advertiser. Policy can return 200 without persistence, and storage runs asynchronously. Verify the matched stored event and the advertiser's approval record rather than relying on the response alone.