🔧 Implementation Steps
- Form Setup
- Added a contact form using the Contact Form 7 plugin on WordPress.
- Verified form HTML structure (identified
Form Classes = wpcf7).
- Trigger Setup (GTM)
- Created a new Form Submission trigger.
- Condition: Form Classes contains
wpcf7 (after testing Form ID, which didn’t fire for CF7).
- Tag Setup (GTM)
- Created a GA4 Event Tag with:
- Event name:
form_submission
- Event parameters:
form_class → {{Form Classes}}
page_url → {{Page URL}}
- Assigned the trigger (
Form Submission – Contact Form) to this tag.
- Validation
- Used Tag Assistant (Preview mode) to submit the form and confirm tag firing.
- Checked GA4 DebugView → saw
form_submission events logged with parameters.
- Conversion Setup
- Promoted
form_submission as a Key Event in GA4 so it counts as a conversion.
✅ Results
- Form submissions are now tracked as a conversion event in GA4.
- Captured context (form class and page URL) to differentiate between forms if multiple exist in the future.
📸Screenshots

