On this page
What this issue is
Google Analytics 4 (GA4) records every action as an event with a name. generate_lead is one of Google's recommended event names for a lead form submission. GA4 matches names exactly. Capital letters, spaces, hyphens and extra characters all make a different event.
So Generate_Lead, generate-lead, generate_lead (with a trailing space) and generatelead are all treated as new, unrelated events. GA4 will not warn you. It simply records them under the odd name.
| Name sent | Matches generate_lead? | What happens |
|---|---|---|
| generate_lead | Yes | Counted as the recommended lead event |
| Generate_Lead | No | Shown as a separate custom event |
| generate-lead | No | Separate custom event |
| generate_lead (trailing space) | No | Separate event that is hard to spot |
| generatelead | No | Separate custom event |
Why it costs you leads or sales
The form still works and the visitor still becomes a lead. But the number you use to judge marketing is wrong. Anything built on generate_lead sees zero, or only part of the leads.
- The GA4 key event (conversion) marked as generate_lead stops counting
- Google Ads conversions imported from GA4 show no new leads
- Smart bidding loses its signal and may spend on the wrong traffic
- Audiences and funnel explorations based on the event stay empty
- Reports split leads across two event names, so totals look low
- Visitor submits formLead is captured
- Tag sends Generate_LeadWrong case in event name
- Key event generate_leadNever matches
- Google Ads importSees no lead
The form works, but the event name does not match what GA4 is set up to count.
Example: 100 real leads in a month. With the typo, none are counted under generate_lead.
How to check if your site has it
Open GA4 Reports
Go to Reports > Engagement > Events. Look for names like Generate_Lead or generate-lead next to, or instead of, generate_lead.
Check the key events list
In Admin > Data display > Events, see if generate_lead is marked as a key event and whether it has recent counts.
Use DebugView
Open Admin > Data display > DebugView, submit your form in a debug session and read the exact event name that arrives.
Inspect the tagGoogle Tag Manager
In Google Tag Manager, open Preview mode, submit the form and click the GA4 event tag. Compare its Event Name field character by character.
Look for hidden characters
Copy the name into a plain text editor to spot trailing spaces or a capital letter that looks similar.
How to fix it
The fix is to send exactly generate_lead in lowercase with an underscore. Where you change it depends on how the event is sent.
Open the GA4 event tag
In Tags, open the GA4 Event tag that fires on form submit.
Fix Event Name
Replace the value with generate_lead. Check there is no trailing space. If it uses a variable, check the variable's value too.
Preview and publish
Test in Preview mode, then click Submit to publish a new container version.
Find where the event is sent
It may come from a GA4 plugin, your form plugin's settings, a theme snippet or GTM. Check each.
Edit the event name
In the plugin's event or conversion settings, set the name to generate_lead. If it is in theme code, search for Generate_Lead and correct it.
Clear caches
Purge page and plugin caches so the old script is not served.
Check Customer events
In Settings > Customer events, review custom pixels for a gtag call with the wrong name.
Check the GA4 app or theme
If an app sends the event, look for an event name setting. If it is in theme.liquid or a snippet, edit it there.
Search custom code
In Project settings > Custom code and in page-level code, search for Generate_Lead.
Correct and republish
Change it to generate_lead and publish the site.
Check tracking code
Open the funnel or website settings and look at the tracking code and any custom script on the form's thank-you step.
Fix the event call
Change the event name to generate_lead and save and publish the funnel.
Open Marketing Integrations
In Marketing & SEO, check Google Analytics and any custom events set up there.
Check Custom code
In Settings > Custom code, search for the wrong name and correct it.
Check Code Injection
In Settings > Developer Tools > Code Injection, and in any form's post-submit advanced code, find the event call.
Correct the name
Change it to generate_lead and save.
Search your codebase
Search for Generate_Lead, generate-lead and similar spellings in templates and scripts.
Use the exact name
Replace with the snippet below and deploy.
gtag('event', 'generate_lead', {
form_id: 'contact',
method: 'website_form'
});window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'generate_lead',
form_id: 'contact'
});Before
- Tag sends Generate_Lead
- generate_lead key event shows zero
- Ads import sees no leads
After
- Tag sends generate_lead
- Key event counts each submit
- Ads import receives the lead signal
How to confirm it's fixed
Submit a test lead
With DebugView or GTM Preview on, fill in and submit the real form.
Read the event name
In DebugView, confirm the event shows as generate_lead exactly, with your parameters.
Wait for reports
Standard Events reports can take a day to update. Check the count of generate_lead the next day.
Check the key event
Confirm generate_lead is marked as a key event and, if used, that your Google Ads import shows new conversions.
How to prevent it happening again
- Keep a written list of your event names and copy from it, never retype
- Use Google's recommended names exactly as documented, in lowercase with underscores
- Store the name in one GTM constant variable and reuse it in every tag
- Test every tag change in Preview mode and DebugView before publishing
- Review the GA4 Events report monthly for unexpected near-duplicate names
- Limit who can edit tags and write a note with each container version
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor runs your real lead journey on a schedule, submits the form and watches the tracking hits sent to GA4. The check is an exact event match: it looks for the expected event name, so Generate_Lead does not count as generate_lead.
If the expected name is missing, the failure is re-checked from a second region before one alert goes out. You get the alert by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. Test traffic is marked with utm_source=funnelguard and fg_test=1 so you can filter it out of reports.
The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial. A free read-only website audit is also available.
Questions people ask
Are GA4 event names case-sensitive?
Yes. GA4 matches event names exactly, so Generate_Lead and generate_lead are two different events. Each gets its own row in reports and only the exact name matches a key event or audience.
Why is my generate_lead event not showing in GA4?
A common cause is a misspelled name such as Generate_Lead, generate-lead or one with a trailing space. Check the Events report for near-duplicates and compare the name in DebugView with your tag. Other causes are a tag that does not fire or a form that does not trigger it.
How do I fix Generate_Lead vs generate_lead in GA4?
Change the event name in the tag or code that sends it to exactly generate_lead, then test in DebugView and publish. GA4 cannot rename past events, so old data stays under the wrong name. New leads will count correctly.
Can I rename an event in GA4 without changing the code?
GA4 has a Create event feature (Admin > Data display > Events) that can build a new event from an existing one by matching its name. It is a workaround and creates a second event. Fixing the name at the source is cleaner.
Will the typo affect my Google Ads conversions?
Yes, if Ads imports the generate_lead key event from GA4. The misspelled event never matches, so Ads sees no new leads. This can weaken automated bidding that relies on the signal.
Do I have to use the name generate_lead?
No, you can use a custom name, but generate_lead is Google's recommended event for lead forms and works with built-in reporting. Whatever name you choose, use it identically in every tag and in your key event settings.
How can I tell if two tags are sending different names?
Open the Events report and look for pairs of similar names. Then use GTM Preview mode to see which tags fire when you submit the form. Each tag's Event Name field shows what it sends.
Related issues
- TRK-043generate_lead not sent on form submitFix guide
- TRK-048Event name exceeds 40 chars or uses reserved nameFix guide
- TRK-063Click event named differently than expected (whatsapp_click vs click_whatsapp)Fix guide
- TRK-049Required event parameter missing (form_id, method)Fix guide
- TRK-053Custom dimensions sent but not registered in GA4Fix guide
- TRK-044generate_lead fires on page load instead of submitFix guide