Toolvito

Works on this device

GA4 Event Name Generator

Type each event in plain words, such as "Download price list", and get an event name such as download_price_list, written by your rules and checked against the naming rules of Google Analytics 4 (GA4). You can also check a list of event names you already use. Nothing is sent to Google.

Enter your values

Type each event in plain words. Each line becomes one event name, shaped by your rules and checked against the GA4 rules.

Your values

One event on each line, in your own words. At most 1,000 lines; empty lines are skipped.

GA4's own event names, such as sign_up and file_download, use small letters.

GA4 allows only letters, digits and _, so a hyphen or a space breaks its rules.

More options

Words put in front of every name, such as web or app. They follow the same rules.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose the button below them.

How to use the GA4 event name generator

  1. Type each event in your own words, one on each line, such as Play product video.
  2. Choose the case of the letters and how the words are joined. Small letters joined with _ is the style of GA4's own event names.
  3. The names are made while you type, each with the result of the GA4 check. Copy them or download them.
  4. To check names you already use, choose Check event names against the GA4 rules and paste them, one on each line, or choose Check these names under the result.

The GA4 rules for event names

These rules come from Google Analytics Help ("[GA4] Event naming rules") and the Firebase documentation of logEvent. Google may change them, so check the current help when it matters.

  • A name starts with a letter.
  • It uses only the letters A to Z (small or capital), the digits 0 to 9 and the underscore _. Spaces and hyphens are not allowed.
  • It has at most 40 characters.
  • It does not start with a reserved prefix: _, firebase_, ga_, google_, gtag..
  • It is not a reserved event name, a name that GA4 sets itself (the table below).
  • Names are case sensitive: Sign_Up and sign_up are two different events. The check says when two names differ only in capital letters.

Reserved event names that are checked

  • ad_activeview
  • ad_click
  • ad_exposure
  • ad_query
  • ad_reward
  • adunit_exposure
  • app_clear_data
  • app_exception
  • app_remove
  • app_store_refund
  • app_store_subscription_cancel
  • app_store_subscription_convert
  • app_store_subscription_renew
  • app_update
  • app_upgrade
  • dynamic_link_app_open
  • dynamic_link_app_update
  • dynamic_link_first_open
  • error
  • first_open
  • first_visit
  • in_app_purchase
  • notification_dismiss
  • notification_foreground
  • notification_open
  • notification_receive
  • os_update
  • session_start
  • session_start_with_rollout
  • user_engagement

How a name is made from words

  • White space at the ends is taken off, and accented letters become plain letters if you choose it (é becomes e).
  • The line is cut into words at every character that is not a letter or a digit, such as a space, %, - or /. That character is dropped.
  • Each word gets the case rule (small letters, capital letters, a capital first letter, or as typed), and the words are joined with the joiner. A prefix such as web goes in front, by the same rules.

Worked example

The starting lines give sign_up_form_submitted (22 characters), download_price_list, play_product_video and add_to_wish_list. All four keep the GA4 rules.

Checked with the rule "small letters only", Download-PDF has capital letters and a hyphen, _internal_event and ga_custom_click start with reserved prefixes, first_visit is a reserved event name, Sign_Up differs only in capital letters from sign_up, and newsletter_subscription_confirmed_in_footer has 43 characters.

Limits you should know

  • The names are made and checked on this page only. Nothing is sent to Google Analytics, and the tool cannot see which events your property already has.
  • The list of reserved names here may not be complete. Use Google's recommended event names, such as sign_up, login or purchase, when they fit your event.
  • Event parameters have rules of their own; this tool checks event names only. To plan events with their parameters, use the Analytics Tracking Plan Generator.
  • At most 1,000 names at once.

Related tools