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.
- Ad clickVisitor lands on the page
- Form submittedLead is real, email may arrive
- generate_lead eventNever sent to GA4
- GA4 conversionNot counted
- Ads optimisationNo signal to learn from
The visitor finishes the form, but no event reaches GA4, so everything downstream is empty.
Example: 100 real form submissions in a month, but GA4 only records the ones where a thank-you page happens to load.
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.
Open DebugView
In GA4 go to Admin > Data display > DebugView and pick your device.
Submit a test lead
Fill in the form with a test email and submit it.
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.
Check the network request
In browser DevTools, Network tab, filter by
collect. A working event is a request to google-analytics.com withen=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.
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.
Create the GA4 event tag
Tags > New > Google Analytics: GA4 Event. Choose your Google tag or Measurement ID, set Event Name to
generate_leadin lowercase.Add useful parameters
Optionally add
form_idand, if you value leads,valueandcurrency.Attach the trigger and publish
Test in Preview mode, then Submit and publish the container.
Find out what your form plugin does
Contact Form 7, WPForms, Gravity Forms and Elementor forms behave differently. Many redirect to a thank-you page or push a dataLayer event.
Use a thank-you page or plugin event
Set the form to redirect to a thank-you page after success, then trigger the tag in Tag Manager on that URL. Or use your analytics plugin's form tracking option if it offers one.
Test in DebugView
Submit a test lead and confirm generate_lead appears once.
Find where the form lives
Contact forms on the theme post back to the same page with
?contact_posted=true. Third-party form apps may use their own thank-you message.Trigger on the success state
In Tag Manager, use a Page View trigger where Page URL contains
contact_posted=true, or a custom event from your form app.Check Customer Events
If you use Shopify's Customer Events (pixels) instead of Tag Manager, subscribe to the event your form app publishes and send generate_lead from there.
Set a redirect
Select the form, open Settings, and set a Redirect URL to a thank-you page.
Trigger on that page
Fire the GA4 event tag in Tag Manager on a Page View for that path. Webflow's success message alone does not change the URL.
Or add custom code
Use the code snippet below in Project Settings > Custom Code, listening for a successful submission.
Redirect after submit
In the form or survey settings, set the on-submit action to redirect to a thank-you page URL.
Fire the tag there
Add Tag Manager or the gtag snippet to that page and trigger generate_lead on load. Embedded forms in an iframe cannot be tracked from the parent page, so use the redirect or a parent-page message.
Open Marketing Integrations
In Wix go to Marketing & SEO > Marketing Integrations and connect Google Analytics, or use Tag Manager.
Use a thank-you page
Set the form's submit action to show a thank-you page, then fire generate_lead on that page's URL via Tag Manager.
Set a post-submit redirect
Edit the form block > Storage / Advanced and set the Post-Submit Redirect to a thank-you page.
Fire the event
Trigger the GA4 event in Tag Manager on that page path, or add the gtag snippet in that page's Code Injection.
Send the event on success only
Call gtag in the success handler of your form code, not on button click. See the snippet below.
Make sure gtag is loaded
The Google tag (gtag.js) must be on the page before the call runs.
fetch('/api/lead', { method: 'POST', body: new FormData(form) })
.then(function (res) {
if (res.ok) {
gtag('event', 'generate_lead', {
form_id: 'contact-form'
});
}
});window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'generate_lead',
form_id: 'contact-form'
});- 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.
- 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.
Related issues
- TRK-044generate_lead fires on page load instead of submitFix guide
- TRK-045Lead event fires on submit click even when validation failsFix guide
- TRK-046Conversion event fires on every page view of thank-you page (refresh)Fix guide
- TRK-047Event name typo (Generate_Lead vs generate_lead)Fix guide
- TRK-049Required event parameter missing (form_id, method)Fix guide
- TRK-053Custom dimensions sent but not registered in GA4Fix guide