On this page
What this issue is
Every GA4 event has a name, such as generate_lead or purchase. GA4 sets rules for those names. Names must start with a letter, use only letters, numbers and underscores, and be 40 characters or fewer. Names are case sensitive.
Some names are reserved. Google collects them automatically, so you cannot send your own copy. Examples include app_remove, first_visit, session_start, user_engagement, click (a built-in enhanced measurement event), page_view (used with care) and in_app_purchase. Prefixes ga_, google_ and firebase_ are also reserved. Check Google's current list in the GA4 help page on reserved names, because it can change.
Why it costs you leads or sales
A rejected event does not show up in reports, so you cannot mark it as a key event (conversion). Google Ads and other tools that import GA4 conversions then see nothing. Bidding runs on less data, and reports under-count real leads. The form itself still works, so nobody notices.
This often happens when a tag manager auto-builds names from the page, for example generate_lead_contact_us_form_homepage_hero_section_v2. It looks fine in the tag, but GA4 does not accept it.
- Visitor submits formLead is captured
- Tag sends eventName is 52 characters
- GA4 validates nameOver 40 characters, dropped
- Key event countedNever recorded
- Ads importNo conversion to learn from
The visitor does everything right. The break happens when GA4 rejects the name.
Example: a site gets 100 real leads a month, but the event with the long name is never recorded in GA4.
How to check if your site has it
List your custom event names
In Google Tag Manager, open Tags and filter by GA4 Event. Note the Event Name field of each tag. In custom code, search for
gtag('event'anddataLayer.push.Count the characters
Paste each name into a character counter or run
'your_event_name'.lengthin the browser console. Anything above 40 fails.Compare with the reserved list
Check each name against Google's reserved event names and prefixes (
ga_,google_,firebase_).Test in DebugViewGoogle Tag Manager
In GTM, click Preview and open your site. In GA4, go to Admin, then DebugView. Trigger the action. If the event is missing from the stream, the name is a likely cause.
Check Realtime and Events reports
In GA4, open Reports, then Realtime, and look for the event. Later, check Reports, then Engagement, then Events. A name that never appears points to rejection.
How to fix it
The fix is the same everywhere: pick a short, descriptive name made of lowercase letters, numbers and underscores. Prefer GA4's recommended names (generate_lead, sign_up, purchase, begin_checkout) when one fits. Put extra detail in parameters, not in the name.
| Problem name | Why it fails | Better name |
|---|---|---|
| generate_lead_contact_us_form_homepage_hero_section | Over 40 characters | generate_lead (with form_id parameter) |
| first_visit | Reserved name | landing_first_visit |
| google_click_call | Reserved prefix google_ | click_call |
| Form Submit - Contact | Spaces and hyphen | form_submit_contact |
Open the GA4 Event tag
Go to Tags and open the tag with the bad name.
Edit Event Name
Replace the name with a short allowed one. If you use a variable such as a Click Text variable in the name, replace it with a fixed name and move the variable into an event parameter.
Update triggers and conversions
Anything that referenced the old name needs the new one, including key event settings in GA4.
Preview and publish
Use Preview, confirm in DebugView, then Submit the container.
Find where the event is created
It may come from a GA4 plugin's event settings, a form plugin's tracking option, or a snippet in your theme or a header and footer plugin.
Shorten the name
Edit the event name in that setting or snippet. Plugin menus differ, so check the plugin's own settings page.
Clear caches
Purge your caching plugin and CDN so visitors get the updated script.
Find the source
Check Settings, then Customer events for custom pixels, and your theme code for
gtag('event'calls. Apps may also send their own events.Rename in the pixel or theme
Edit the event name in the custom pixel code or theme file. For app events, look in the app's tracking settings.
Test on the storefront
Trigger the action and confirm the new name in DebugView.
Search your code
Find every
gtag('event', ...)call anddataLayer.push({event: ...}).Use a constant
Define the name once and reuse it so it cannot drift.
Move detail to parameters
Send page or form details as parameters, as in the snippet below.
// Bad: too long, GA4 drops it
// gtag('event', 'generate_lead_contact_us_form_homepage_hero_section', {});
// Good: recommended name under 40 characters
gtag('event', 'generate_lead', {
form_id: 'contact_us',
form_location: 'homepage_hero'
});Rejected
- Name is 52 characters
- Uses a google_ prefix
- Never appears in DebugView
- Not available as a key event
Accepted
- Name is under 40 characters
- Lowercase with underscores
- Shows in DebugView within seconds
- Marked as a key event and imported to ads
How to confirm it's fixed
- The event appears in GA4 DebugView with the new name when you trigger the action
- The Network tab shows a
collectrequest with the correcten=value - The event appears in Realtime within a few minutes
- The event is listed under Admin, then Events, and toggled as a key event if it should be
- Google Ads or other imports now reference the new event name
- The old name no longer fires anywhere
How to prevent it happening again
- Keep a tracking plan listing every event name, its trigger and its parameters
- Use lowercase letters, numbers and underscores only
- Prefer GA4 recommended event names before inventing your own
- Never build event names from dynamic variables such as page titles or button text
- Put detail in parameters, not in the name
- Test every new tag in GTM Preview and DebugView before publishing
- Review the Events report after each site or tag change
How FunnelGuard handles this
FunnelGuard does not check event name length or reserved names yet. It is a possible future check.
What FunnelGuard does do is run your real customer journeys on a schedule, such as a lead form, from the EU or the US, and check the tracking hits sent to GA4 and other ad platforms. It also checks that test leads reach your inbox and CRM. That is a useful nearby safety net, but it is not a name-validation check.
To watch for this issue today, keep a tracking plan, count characters when you add events, and test new tags in GTM Preview and GA4 DebugView. After each tag change, run the journey yourself and check that the event shows in Realtime. You can try FunnelGuard with the Free plan (1 site, 2 journeys, daily checks, no card) or a 3-day free trial on any paid plan.
Questions people ask
What is the maximum length of a GA4 event name?
A GA4 event name can be up to 40 characters. It must start with a letter and use only letters, numbers and underscores. Longer names are rejected and the event is not recorded.
Why is my GA4 event not showing in reports?
Common causes are a name over 40 characters, a reserved name or prefix, a tag that never fires, or consent settings that block it. Check DebugView and the Network tab for the collect request and read the en= value to see what was actually sent.
What are reserved event names in GA4?
Reserved names are ones Google collects automatically, such as first_visit, session_start, user_engagement and app_remove. The prefixes ga_, google_ and firebase_ are also reserved. Google publishes the full list in its GA4 help pages, and it can change.
How do I rename a GA4 event?
Change the event name in the tag or code that sends it, for example the Event Name field of a GA4 Event tag in Google Tag Manager. Then update key event settings and any ad imports. Past data stays under the old name.
Can I use spaces or capital letters in GA4 event names?
Spaces and symbols are not allowed. Capital letters are allowed, but names are case sensitive, so Generate_Lead and generate_lead are different events. Use lowercase with underscores to stay safe.
How do I test if a GA4 event name is accepted?
Use GTM Preview with GA4 DebugView. Trigger the action and see whether the event appears in the stream. You can also read the en= value in the collect request in your browser's Network tab.
Does FunnelGuard detect GA4 event names that are too long?
No, not yet. FunnelGuard does not check event name length or reserved names. It does run your real journeys and check tracking hits sent to GA4 and other platforms, but name validation is only a possible future check.
Related issues
- TRK-047Event name typo (Generate_Lead vs generate_lead)Fix guide
- TRK-043generate_lead not sent on form submitFix guide
- TRK-049Required event parameter missing (form_id, method)Fix guide
- TRK-051Parameter values contain template placeholders ({{Click Text}})Fix guide
- TRK-063Click event named differently than expected (whatsapp_click vs click_whatsapp)Fix guide
- TRK-053Custom dimensions sent but not registered in GA4Fix guide