Toolvito

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

JSON, JSON Lines or gtag() and dataLayer.push() code.

Your values

JSON or JSON Lines of events or Measurement Protocol requests, or page code with gtag() and dataLayer.push() calls.

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.

Check large files of events

Check large files of events

Choose up to 20 JSON or JSON Lines files of up to 100 MB each, such as logged Measurement Protocol requests or exported events. Every event is checked with the rules above, and you get the problems and a count for each event name as CSV files.

Or drop files here. JSON, JSONL, NDJSON or TXT, up to 20 files, 100 MB each at most.

    The events above are checked in your browser. When you use this box, the files you choose are sent to the Toolvito server. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

    How to use it

    1. Paste your events as JSON or JSON Lines, or paste page code with gtag('event', ...) and dataLayer.push({...}) calls.
    2. Press Check the events and read the problems: each names the record, the event and the parameter.
    3. 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.

    Related tools