The GA4 Event Parameter Schema Validator is a free code snippet that catches GA4 events and parameters that Google will silently truncate or drop before they ever hit your property, based on GA4's own documented limits, live-verified against Google's current support docs.
Pure functions you call against your own event payloads before sending them, not a hosted service or a GA4 API integration. Runs entirely in your own environment.
| File | Purpose |
|---|---|
ga4-validator.js | validateEventName(), validateParameterName(), validateParameterValue(), validateEvent() — zero dependencies |
test.js | 24-test suite covering every documented limit, including the page_title/page_referrer/page_location value-length exceptions |
Fetched directly from Google’s current support pages: event name 40 characters max, parameter name 40 characters max, parameter value 100 characters max with documented exceptions (page_title 300, page_referrer 420, page_location 1000), max 25 parameters per event, and reserved prefixes that cannot be used for custom names (underscore, firebase_, ga_, google_, gtag.). Google can update these over time, so the limits are exported constants, not buried magic numbers.
Yes. Free to download and use. MV3 charges $175/hr only if you want help wiring this into your real event-tracking pipeline.
No. It is a pure function you run against your own event payloads before sending them, entirely in your own environment.
Fetched directly from Google's current official support documentation, not assumed from memory. Sources are linked in the README.
GA4_LIMITS and RESERVED_PREFIXES are exported constants, not hardcoded deep in the logic, so you can override them if the documented values change.
AI Marketing & SEO Automation, All States
AI Content & SEO Infrastructure for B2B companies that want to own their growth channel , not rent it.
(704) 317-2293 Get the Audit →We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
Google Tag Manager simplifies the management of marketing tags on your website without code changes.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.