GA4 Event Builder
Build and validate Google Analytics 4 gtag event snippets — correct naming, parameters, and copy-ready code.
About this tool
Custom GA4 events need correct naming and parameter structure — malformed events pollute reports or fail to fire.
This builder validates event names and outputs copy-ready gtag snippets entirely in your browser.
How to use the GA4 Event Builder
- 1
Choose a recommended event or enter a custom event name.
- 2
Add category, label, and optional value parameters.
- 3
Review validation warnings and copy the gtag snippet into your site.
Event naming best practices
Use lowercase snake_case: sign_up, not Sign Up or signUp. Stick to recommended events when they fit — Google pre-maps them in reports.
Keep parameter names consistent across events so you can build comparisons and explorations later.
Pro tips
- Test events in GA4 DebugView before deploying to production.
- Document custom events in a shared spec sheet for your team.
Social Media Specs & Character Limits
Optimal text formatting, length guidelines, and parameters for all major platforms:
| Platform | Max Length | Ideal Length | Hashtag Policy |
|---|---|---|---|
| Instagram Feed & Reels | 2,200 chars | 125 - 150 chars | 3 - 5 tags (Recomm.) |
| TikTok Posts | 4,000 chars | 100 - 200 chars | 3 - 5 tags (Ideal) |
| YouTube Description | 5,000 chars | 1,500 chars (SEO) | 3 - 10 tags |
| X / Twitter Post | 280 chars | 100 - 140 chars | 1 - 2 tags |
| LinkedIn Articles & Posts | 3,000 chars | 500 - 1,000 chars | 3 - 5 tags |
Related tools
All tools →Conversion Rate Calculator
Calculate funnel conversion rates and benchmarks
UTM Parameter Debugger
Validate, explain, and fix UTM parameters in URLs
Advanced Engagement Calculator
Calculate ER with likes, comments, shares & saves
Cookie Expiration Calculator
Calculate analytics cookie expiry dates and TTL
CPC Calculator
Analyze cost per click, CPM, and ad efficiency
Day-of-Week Performance Guide
See best posting days and hours by platform
Frequently Asked Questions
Does this send data to Google?▼
No. Snippets are generated entirely in your browser — nothing is uploaded or tracked here.
What makes a valid GA4 event name?▼
Use lowercase letters, numbers, and underscores only. Names must start with a letter — no spaces or special characters.