Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 event name over 40 characters or reserved: how to fix it

TRK-048Medium impactCould addBy FunnelGuardPublished Updated
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.

Where a bad event name loses the lead
  1. Visitor submits formLead is captured
  2. Tag sends eventName is 52 characters
  3. GA4 validates nameOver 40 characters, dropped
  4. Key event countedNever recorded
  5. Ads importNo conversion to learn from

The visitor does everything right. The break happens when GA4 rejects the name.

Leads recorded vs leads actually receivedExample numbers
Leads recorded vs leads actually received (example)Real leads (CRM): 100 leads; Leads in GA4 (long name): 0 leads; Leads in GA4 (renamed): 97 leads03877100097Real leads (CRM)Leads in GA4 (long na…Leads in GA4 (renamed)leads

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

Find rejected event names
  1. 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' and dataLayer.push.

  2. Count the characters

    Paste each name into a character counter or run 'your_event_name'.length in the browser console. Anything above 40 fails.

  3. Compare with the reserved list

    Check each name against Google's reserved event names and prefixes (ga_, google_, firebase_).

  4. 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.

  5. 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.

Example renames
Problem nameWhy it failsBetter name
generate_lead_contact_us_form_homepage_hero_sectionOver 40 charactersgenerate_lead (with form_id parameter)
first_visitReserved namelanding_first_visit
google_click_callReserved prefix google_click_call
Form Submit - ContactSpaces and hyphenform_submit_contact
Rename the event on your platform
  1. Open the GA4 Event tag

    Go to Tags and open the tag with the bad name.

  2. 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.

  3. Update triggers and conversions

    Anything that referenced the old name needs the new one, including key event settings in GA4.

  4. Preview and publish

    Use Preview, confirm in DebugView, then Submit the container.

Short name, detail in parametersjavascript
// 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'
});
Event naming

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

Confirmation checks
  • The event appears in GA4 DebugView with the new name when you trigger the action
  • The Network tab shows a collect request with the correct en= 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

Naming habits
  • 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.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.