Playbook: track leads from a landing page

Send landing page form leads to the Lead app and keep the ad platform's tracking parameters so each lead is tied to its campaign.

In plain words: A landing page is the page on your own website where an ad sends people. This playbook makes a form on that page create leads in the Lead app, and makes each lead remember which ad it came from. Read it if your ads send people to your website. This is also the route for ChatGPT Ads. New to ad terms such as UTM, click id and attribution? See Ads basics.

Who this is for: anyone sending ad traffic to their own website or landing page (route C in How you run ads decides how you set up).

What you'll have at the end: a form on your page that creates leads in the Lead app, and each lead remembers which ad it came from, so AdManager can count it in the right campaign.

Time: 20 to 40 minutes, depending on your page builder.

Why this matters

You spend 2,000 on Traffic ads and 40 people fill in your form. Nothing tells Rework which ad they clicked unless your page tells it. Without tags, the Lead app has 40 leads, AdManager shows 0 leads for the campaign and a dash for cost per lead. With tags, the same 40 leads count against the right campaign and the cost per lead is 50, so you can compare it with your other campaigns.

Words used in this playbook

  • Landing page: the page on your own website where the ad sends people.

  • Webhook / endpoint: a web address your form posts its answers to.

  • UTM parameters: labels added to a link (utm_source, utm_campaign) that say where a visit came from.

  • Click id: an id the ad platform adds to the link (fbclid, gclid, ttclid, li_fat_id, oppref). oppref is ChatGPT Ads'.

  • Attribution: knowing which ad a lead came from.

  • More terms: Ads basics.

Before you start

  • A landing page tool or a form that can post to a webhook: Webflow, Unbounce, Wix, Ladipage, HighLevel, Zapier, Make, or a plain HTTP post from your own site.

  • A lead service in the Lead app, and admin rights there (to add a source).

  • The ad account connected in AdManager, so spend is synced (Connecting ad accounts).

  • Edit rights on the ads, to add URL parameters.

  • For ChatGPT Ads, the same applies: it sends traffic to your landing page, and its click id oppref is read from your page address.

Steps

Step 1: Create a source in the Lead app

  1. In the Lead app, open Settings > Lead sources > Source integrations, then click Connect new (or Add source).

  2. In Connect integration, pick the Service the leads go to and a Name.

  3. Choose the type matching your tool (Landing pages, API or Connectors), then click Connect.

Learn more: Landing pages and UTM tagging.

The landing page source in the Lead app

Step 2: Copy the endpoint

  1. In the Lead app, open the source, then the Details tab, then Set up your landing page.

  2. Copy the Endpoint. Use the Lead payload and Sample request as a guide.

  3. Paste the endpoint into your page builder's webhook or form-submit setting.

Important: keep the token secret. If it leaks, use Regenerate token in the row menu.

Step 3: Map the fields

  1. In the Lead app, open the source's Transform fields tab.

  2. Click Auto Map Fields, fix anything wrong, then click Validate and save.

Unmapped answers are kept only as raw data.

Field mapping (Transform) for the landing page source

Step 4: Tag the ads (on the ad platform)

Rework reads only these keys from the page address: meta_ad_campaign_ext_id, meta_ad_group_ext_id, meta_ad_ext_id, gad_campaignid, gad_adgroupid, the click ids and utm_*.

  1. Meta: in Meta Ads Manager open the ad, then Tracking > URL parameters, and paste meta_ad_campaign_ext_id={{campaign.id}}&meta_ad_group_ext_id={{adset.id}}&meta_ad_ext_id={{ad.id}}. Meta adds fbclid itself.

  2. Google: keep auto-tagging on (it adds gclid) and add gad_campaignid={campaignid}&gad_adgroupid={adgroupid} to the Final URL suffix.

  3. TikTok, LinkedIn, ChatGPT Ads: each adds its own click id (ttclid, li_fat_id, oppref). Keep it on the link. For campaign ids use UTM parameters.

Learn more: Landing pages and UTM tagging, TikTok, LinkedIn, ChatGPT Ads.

Step 5: Post the full page address with the form

  1. In your page builder, add a hidden field named referral_url that carries the page's full address.

  2. If the page posts only the answers, every tag from step 4 is lost. This field keeps them.

Step 6: Submit a test

  1. Open the page from a real ad click, or from a link with the tags typed in, and submit the form.

  2. Open the Lead app and look for the lead under your source.

Campaigns with the Leads and Cost/Lead columns filled in

Check it worked

  • The test lead appears in the Lead app under your source, with the referral URL, the UTM values and the click id filled in.

  • A few hours later, after the next sync, the campaign's Leads column in AdManager counts it (Campaigns, scroll right past Spend).

  • Click the Leads number to open the list of leads behind it.

Troubleshooting

Problem

Why it happens

What to do

UTM and click id fields are empty

A redirect or link shortener stripped the address, or the page does not post referral_url.

See Landing pages and UTM tagging.

Leads arrive but Leads in Campaigns stays 0

The ad has no campaign and ad id parameters.

Add them (step 4). See Connecting to the Lead app.

Every lead is attributed to one ad

The ids were typed in by hand instead of using the platform's dynamic values.

See Landing pages and UTM tagging.

The webhook is rejected

The source is disconnected or the token is wrong.

Reconnect it, or regenerate the token. See Lead sources.

Two leads for one submit

The form posted twice.

Fix the double submit. See Avoiding duplicate leads.

Rebuilt ad has no tags

Rebuilding an ad from scratch drops URL parameters.

Re-add them. See Landing pages and UTM tagging.

Spam leads

A public webhook is open to anyone.

Add spam protection on the form. See Channels and attribution.