How to Track Leads From Popup and Page CTAs

A CTA click is not a lead. Track popup and inline forms with cta_location: "popup" or "inline", and carry that label from the interaction through the accepted submission to the CRM.
Keep 3 steps separate: CTA clicks, server-accepted submissions, and qualified leads. Use stable CTA and form IDs, then:
- Pass placement data through the form, including Reform embeds, into saved records.
- Fire
generate_leadonly after the chosen acceptance or qualification rule is met, and prevent duplicate events. - Test both placements, rejected submissions, consent settings, and inline submissions without a CTA click.
- Compare completion and click-to-lead rates using the same counting rules, then check results against CRM records.
An inline form can produce a lead without a CTA click. Keep its placement label, but leave cta_id blank - don’t invent a click.
Track Popup and Inline Leads From Click to CRM
Label Placements and Preserve Attribution
Once you separate clicks from submissions, keep the placement label attached to every lead record.
Assign Stable CTA and Form IDs
Give buttons and form instances stable HTML IDs:
Use
popup_demo_ctaandinline_demo_ctafor buttons, andpopup_demo_formandinline_demo_formfor their form instances.
Each HTML ID must appear only once per page, even when both placements share the same underlying form. Track IDs, not button text, so copy changes won't break tracking.
Send cta_id, cta_location, and form_name only when needed. Include page_path only if the same form appears on multiple pages, and add form_id to identify the rendered form instance. Keep form_name consistent across the shared form, and use cta_location to identify the click source.
Pass Placement Data to Lead Records
Store these values in hidden fields or submission metadata, then map them to CRM fields. If visitors move between pages, carry attribution forward with UTM parameters or first-party state. Keep personal data out of IDs and page paths.
Document which click gets credit - the first or latest eligible CTA click - and how long that credit lasts. Apply the same rule to analytics and lead records. Assign credit using stored placement data, rather than guessing that a submission came from a popup based on the form container.
Set Up Placement Tracking With Reform
Once you've defined the fields, check that the Reform embed accepts them and passes them into saved submission records and connected tools without losing data.
Map the supported fields, test each placement once, and confirm that both saved records match the values sent. Don't assume parameters on the parent page automatically reach an embedded form. In GA4, register the placement parameters you need as event-scoped custom dimensions. Sending the parameters alone won't make them available in reports.
sbb-itb-5f36581
Track CTA Clicks and Accepted Submissions
Use Consistent Event Names and Fields
Once you’ve defined placement labels, log them the same way at every step. Use these payload fields for each event.
| Event | Popup payload fields | Inline payload fields |
|---|---|---|
cta_click |
placement: "popup", cta_id: "popup_demo_cta" |
placement: "inline", cta_id: "inline_demo_cta" |
form_submit |
placement: "popup", form_id: "popup_demo_form", form_name: "demo_request", cta_id: "popup_demo_cta", submission_id: "..." |
placement: "inline", form_id: "inline_demo_form", form_name: "demo_request", cta_id: "inline_demo_cta", submission_id: "..." |
generate_lead |
placement: "popup", form_id: "popup_demo_form", form_name: "demo_request", cta_id: "popup_demo_cta" |
placement: "inline", form_id: "inline_demo_form", form_name: "demo_request", cta_id: "inline_demo_cta" |
Check GA4 Enhanced Measurement before relying on automatic form_submit events. They may lack the custom parameters you need for detailed attribution. Views, form_start, and scrolling track activity - not conversions.
Fire Lead Events Only After Acceptance
The payload matters only if the lead event fires after acceptance.
Fire generate_lead from a verified success callback, backend confirmation, or CRM-confirmed acceptance - not the submit click. Decide whether backend acceptance is enough or CRM acceptance is required. If you require CRM acceptance, wait for that confirmation. Validation failures and server errors must never trigger lead events.
Choose one source of record for lead events. Otherwise, browser callbacks, server events, and confirmation-page loads could each count the same submission. Deduplicate lead events in your application or on the server with a non-personal submission_id. Don’t rely on GA4 to do it.
Check Where Form Users Drop Off
Once events fire correctly, compare where users drop out of the popup and inline funnels.
Use Reform real-time analytics to separate form activity from accepted leads. First, check the available event hooks in Preview mode and GA4 DebugView. Confirm that placement and form_id remain intact from click through acceptance. Then compare placement-tagged clicks, submissions, and accepted leads.
Review each placement separately. A gap between click and submit rates points to form friction. A gap between submission and acceptance points to validation or server issues. Keep inline submissions without a preceding CTA click out of the click-to-submit comparison. Never count incomplete or abandoned responses as leads.
Test Both Placements and Build the Report
Run the Placement Tracking Checklist
Once the event model is live, test it in debug mode and compare popup and inline results side by side.
Use GA4 DebugView or GTM Preview to check cta_location and cta_id for the path you tested. Record test notes and submission IDs so you can trace accepted submissions into the CRM.
| Test | Expected result | Failure signal |
|---|---|---|
| Popup and inline CTA clicks | Each click carries its own cta_location and cta_id. |
Missing event, generic cta_id, or wrong cta_location. |
| Successful submission | generate_lead fires only after acceptance. |
Event fires before acceptance. |
| Invalid data or server rejection | Validation error appears without a lead event. | Rejected attempt counts as a lead. |
| Placement switching | User clicks inline, then popup; both track separately. | Attribution overwrites or merges. |
| Consent denied | No tracking events fire to analytics. | Events still appear after denial. |
| CRM reconciliation | Accepted lead count matches CRM record count. | Analytics and CRM totals do not match. |
Check that each submission keeps the placement of the form actually submitted, not a stale value from an earlier click. Keep the setup consistent, and document missing attribution rather than guessing.
Compare Popup and Inline Lead Results
Compare both placements using the same filters, acceptance rule, and date range. In the table below, filter the popup and inline columns by placement to track clicks, accepted submissions, and CRM totals.
| Metric | Popup segment | Inline segment | Counting rule |
|---|---|---|---|
| CTA clicks | Popup clicks | Inline clicks | Unique session clicks. |
| Form starts | Popup starts | Inline starts | First form-field interaction. |
| Accepted submissions | Popup acceptances | Inline acceptances | Distinct accepted submission IDs. |
| Unique leads | Popup CRM total | Inline CRM total | Deduplicated CRM records. |
| Completion rate | Popup rate | Inline rate | Accepted submissions ÷ form starts. |
| Click-to-lead rate | Popup rate | Inline rate | Unique leads ÷ CTA clicks. |
For completion rate, use the same form-start cohort for both placements. For click-to-lead rate, count only leads linked to the corresponding tracked clicks.
Allow for analytics reporting latency before comparing totals. Then reconcile accepted submissions with CRM outcomes, accounting for differences caused by reporting latency and CRM deduplication.
Conclusion: Check Attribution From Click to CRM
Check attribution from the first click through the CRM record. Use stable CTA and form IDs to keep clicks separate from accepted leads, and make sure retries don’t inflate lead counts.
Test three paths in the report: a popup click followed by a lead, an inline click followed by a lead, and an inline submission with no CTA click. Match each accepted submission to its CRM record using its ID and placement.
For direct inline submissions, leave cta_id blank. Don’t invent a click. Use placement results to guide conversion decisions only after the CRM records match the tested journeys.
FAQs
How should I attribute leads who use both placements?
Choose first-click or last-click attribution and set a window, such as 30 days. Give each CTA placement a consistent ID. Store the first and last CTA IDs in separate hidden fields, then save the ID selected by your attribution rule in converting_cta_id.
Pass these IDs through every form step. Update the CRM record using your attribution rule, and keep the full activity history in the linked submission log.
Why don’t my analytics and CRM lead counts match?
Analytics tools track clicks and views. CRMs track accepted submissions and lifecycle stages. They measure different things, so their counts often differ.
Use your CRM as the source of truth for sales and firmographic data, and analytics for behavior. Align attribution rules so both use the same approach, such as first-touch or last-touch.
Match records with a shared key, such as a submission ID that identifies each submission. Then compare accepted submissions with deduplicated success events, not total contact counts.
How can I compare placements fairly without inline clicks?
Measure exposure, not just traffic. Calculate each placement’s CTA exposure rate - the percentage of page visitors who see the CTA. Then compare click-through rates using visitors who saw it, rather than total page traffic.
Use controlled A/B tests to isolate one variable at a time, such as position or visibility. Test each variation with at least 1,000 recipients over 3–7 days, but check statistical significance before treating the results as conclusive.
Related Blog Posts
Get new content delivered straight to your inbox
The Response
Updates on the Reform platform, insights on optimizing conversion rates, and tips to craft forms that convert.
Drive real results with form optimizations
Tested across hundreds of experiments, our strategies deliver a 215% lift in qualified leads for B2B and SaaS companies.

.webp)


