Table of Contents
Tracking WPForms submissions is vital for measuring form engagement, lead conversions, and user intent. Because WPForms primarily uses AJAX (Asynchronous JavaScript) submission, standard GA4 event detection often fails.
The most reliable method is to listen specifically for the internal JavaScript event that WPForms fires only upon a successful, valid submission.
Method 1: Track WPForms Using the Success Listener (Recommended)
This method ensures you track only successful submissions, offering the highest level of accuracy for your conversion data.
Step 1: Add the WPForms Success Listener in GTM
We deploy a small script in GTM that listens for the specific native event name (wpforms.form.submitted) and pushes a custom event to the Data Layer.
1. In Google Tag Manager, go to Tags → New.

2. Choose Custom HTML.

3. Paste this code:

4. Trigger: Select the DOM ready trigger

5. Save the tag as: 👉 WPForms – Success Listener

Step 2: Create Custom Event Trigger
We create a trigger that listens for the specific event name (wpform_success) pushed by the script.
1. Go to Triggers → New.
2. Choose Custom Event.

3. Event Name: Enter the exact string: ajaxComplete .
4. Name the trigger: 👉 WPForms – Form Success Trigger and Save.

Step 3: Create GA4 Event Tag
This tag sends the conversion signal to Google Analytics 4.
1. Go to Tags → New.
2. Choose Google Analytics: GA4 Event.

3. Configuration Tag: Select your existing GA4 Configuration Tag.
4. Event Name: Use a standard name, e.g., Wp_Form_Submit


5. Under Triggering → Select: 👉 WPForms – Form Success Trigger.

6. Save the tag as: GA4 – WPForms Submission

Step 4: Test in GTM Preview Mode
Testing is crucial to confirm the listener is working.
1. Click Preview in GTM.

2. Submit your WPForm on your website.

3. In the Tag Assistant panel, look in the left column for the event: ajaxComplete.
4. Click that event and confirm your tag, GA4 – WPForms Submission, fired under “Tags Fired.”

Step 5: Verify in GA4 DebugView
- Open your GA4 property.
- Go to Admin → DebugView.
- Submit the form again.
- Look for the event: Wp_Form_Submit in the timeline.


