Tracking Form Submissions with Custom Events
Track contact forms, lead capture forms, or any HTML form submit as a GA4 event.
Steps
- Go to Analytix → Custom Event Builder → New Event.
- Select event type Form Submission.
- Enter a GA4 Event Name (e.g.,
contact_form_submit). - In the CSS Selector field, enter the selector for your form. Examples:
#contact-form— by ID.wpcf7-form— Contact Form 7form.my-form— by class
- Click Save Event.
Verify in GA4
After saving, submit a test form on your site. Go to GA4 → Reports → Realtime and look for your event name in the Events card. It should appear within a few seconds.
GA4 tracking code must be active on your site (via Analytix's tracking snippet or another method) for events to fire.