Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 generate_lead not sent on form submit: how to fix it

TRK-043High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

generate_lead is a recommended event name in Google Analytics 4 (GA4). You send it when someone becomes a lead, for example by submitting a contact or quote form. GA4 does not send it for you. Enhanced measurement can record a form_start and form_submit event, but that is not generate_lead, and it often misses forms that submit with JavaScript.

If GA4 never sees the lead, you lose the data you use to decide where to spend. Reports show traffic with no leads. If you import the event into Google Ads as a conversion, bidding has nothing to learn from. Good campaigns look like failures and may get cut.

Where the lead disappears
  1. Ad clickVisitor lands on the page
  2. Form submittedLead is real, email may arrive
  3. generate_lead eventNever sent to GA4
  4. GA4 conversionNot counted
  5. Ads optimisationNo signal to learn from

The visitor finishes the form, but no event reaches GA4, so everything downstream is empty.

Leads you get vs leads GA4 reportsExample numbers
Leads you get vs leads GA4 reports (example)Real leads (CRM): 100 leads; generate_lead in GA4: 0 leads038771000Real leads (CRM)generate_lead in GA4leads

Example: 100 real form submissions in a month, but GA4 only records the ones where a thank-you page happens to load.

Test it yourself in DebugView
  1. Turn on debug mode

    Open the page in Chrome with the Google Analytics Debugger extension on, or use Tag Manager Preview mode, which enables debug automatically.

  2. Open DebugView

    In GA4 go to Admin > Data display > DebugView and pick your device.

  3. Submit a test lead

    Fill in the form with a test email and submit it.

  4. Look for generate_lead

    Within a few seconds the event should appear in the stream. If you only see page_view, form_start or form_submit, the event is missing.

  5. Check the network request

    In browser DevTools, Network tab, filter by collect. A working event is a request to google-analytics.com with en=generate_lead.

The common causes are: no tag exists, the trigger never fires (the form is built with JavaScript or sits in an iframe), the tag fires but is blocked by consent settings, or the event is sent before a failed submission is known. Pick the method that fits your setup.

Send generate_lead on a successful submit
  1. Create the trigger

    Go to Triggers > New. Best option: Page View on your thank-you URL (Page Path contains /thank-you). If the form shows a message without a new page, use a Custom Event trigger matching what your form tool pushes to the dataLayer, or Form Submission with Check Validation ticked.

  2. Create the GA4 event tag

    Tags > New > Google Analytics: GA4 Event. Choose your Google tag or Measurement ID, set Event Name to generate_lead in lowercase.

  3. Add useful parameters

    Optionally add form_id and, if you value leads, value and currency.

  4. Attach the trigger and publish

    Test in Preview mode, then Submit and publish the container.

gtag call after a successful AJAX submitjavascript
fetch('/api/lead', { method: 'POST', body: new FormData(form) })
  .then(function (res) {
    if (res.ok) {
      gtag('event', 'generate_lead', {
        form_id: 'contact-form'
      });
    }
  });
dataLayer push for Tag Manager (custom event trigger)javascript
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'generate_lead',
  form_id: 'contact-form'
});
Confirmation checklist
  • A test submission shows exactly one generate_lead in DebugView
  • The event appears only after a successful submit, not on page load or a failed validation
  • The network request to the collect endpoint contains en=generate_lead
  • Your parameters (form_id, value, currency) show the right values
  • After 24 to 48 hours the event shows in Reports > Engagement > Events
  • If used, generate_lead is marked as a key event in Admin > Data display > Events

This breaks quietly after a form plugin update, a theme change, a new landing page template or a Tag Manager edit. Keep a short habit list.

Prevention habits
  • Test the form in DebugView after every site, plugin or form builder change
  • Use Tag Manager versions and write a note for every publish
  • Keep one thank-you URL per form so triggers stay simple
  • Use lowercase generate_lead exactly, with no spaces or capitals
  • Run an automated check on a schedule instead of relying on memory

FunnelGuard detects this issue today. A robot visitor loads your page on a schedule, completes your real lead form with marked test data, and watches the tracking hits your site sends. If no generate_lead hit goes to GA4 after the submit, the check fails.

A failure is re-checked from a second region first, so a one-off glitch does not wake you up. Then you get one alert by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. Test traffic is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent). The Free plan covers 1 site and 2 journeys with daily checks, no card needed.

Questions people ask

Why is my GA4 generate_lead event not showing up?

Usually no tag sends it, or the trigger never fires. This happens with forms built in JavaScript, forms inside iframes, or a thank-you page that was changed. Test in DebugView: if you see no generate_lead after a submit, the event is not being sent.

Does GA4 track form submissions automatically?

Only partly. Enhanced measurement can record form_start and form_submit for simple forms, but it does not send generate_lead. You must send generate_lead yourself with Tag Manager or gtag.

How do I send generate_lead from Google Tag Manager?

Create a GA4 Event tag with the event name generate_lead. Attach a trigger that fires only on success, such as a Page View on your thank-you URL or a custom event from your form. Test in Preview mode, then publish.

How do I test generate_lead in GA4 DebugView?

Enable debug mode with Tag Manager Preview or the GA debugger extension, open Admin > Data display > DebugView, and submit a test form. The generate_lead event should appear within seconds.

Why does the form submit work but GA4 shows no leads?

The form and the analytics are separate systems. The form can send an email or save to a CRM while no GA4 event is fired. Tracking needs its own trigger tied to a successful submission.

Do I need generate_lead to be a key event in GA4?

Mark it as a key event (formerly called a conversion) in Admin > Data display > Events if you want it counted as a conversion and imported into Google Ads. The event must be received first before the toggle is available.

Can consent banners stop generate_lead from being recorded?

Yes. If analytics consent is denied, GA4 may collect limited or no data depending on your consent mode setup. Check that your banner passes the correct signals and test with consent granted.

How can I be alerted when generate_lead stops firing?

A synthetic monitor can submit your form on a schedule and check for the GA4 hit. FunnelGuard does this and sends an alert with a screenshot and likely cause when the event is missing.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.