Calculates on this device. File exports run online.
GA4 Parameter Validator
Paste GA4 events — Measurement Protocol requests, { name, params } events, or the gtag() and dataLayer.push() calls of a page — and see every rule an event breaks: a name GA4 refuses, a value that is too long, more than 25 parameters, a recommended event without its required parameters, value without currency, items without item_id or item_name, or user properties over their limits. Or type one event and its parameters.
Enter your values
Check these values
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.
Your result
How it was worked out
How to use it
- Paste your events as JSON or JSON Lines, or paste page code with gtag('event', ...) and dataLayer.push({...}) calls.
- Press Check the events and read the problems: each names the record, the event and the parameter.
- To try one event quickly, choose Check one event and type its name and parameters.
The rules
- Event and parameter names start with a letter, use only letters, digits and _, have at most 40 characters and do not start with , firebase, ga_, google_ or gtag.; some event names are reserved (Google Analytics Help, “[GA4] Event naming rules”).
- At most 25 parameters per event; values of at most 100 characters (page_title 300, page_referrer 420, page_location 1,000) (“[GA4] Event collection limits”).
- Recommended events need their parameters: purchase and refund a transaction_id, ecommerce events items with item_id or item_name, search a search_term; when value is set, currency is needed for revenue (the “Recommended events” reference).
- Measurement Protocol requests: client_id or app_instance_id, at most 25 events, user properties of at most 24 and 36 characters, at most 10 custom item parameters.