How to Create a Custom GA4 Event
The Custom Event Builder lets you define GA4 tracking events visually — no JavaScript or code editing required.
Create a new event
- Go to Analytix → Custom Event Builder.
- Click New Event.
- Choose the event type:
- Form Submission — Fires when a specific form is submitted.
- Click Tracking — Fires when a button or link is clicked.
- Download Tracking — Fires when a file download link is clicked.
- Video Engagement — Fires on play, pause, or completion of a video.
- Custom Interaction — Define any CSS selector and trigger.
- Enter a GA4 Event Name (e.g.,
contact_form_submit). Use lowercase with underscores — no spaces. - Set the CSS selector for the element to track.
- Click Save Event.
Custom events are stored in
wp_agwp_custom_events. Analytix injects a small script on the front end that listens for the configured interactions and fires the GA4 event via gtag('event', ...).