How to Set Up WordPress Contact Form Conversion Tracking
Learn how to track every form submission from your WordPress site and measure the real value of your traffic sources.
Why You Need WordPress Contact Form Conversion Tracking
Without proper wordpress contact form conversion tracking, you operate blind. You see traffic numbers in Google Analytics but you cannot connect those visitors to actual business outcomes. When someone fills out your contact form, that represents a potential customer. You need to know which traffic source sent them.
Conversion tracking tells you which Google Ads campaigns generate leads, not just clicks. It shows you which blog posts convert readers into prospects. It reveals which landing pages work and which waste your budget. This data changes how you allocate resources.
Most WordPress sites collect form submissions but never close the loop with their analytics platforms. They pay for advertising without knowing if it works. They create content without measuring its contribution to business goals. We will fix that problem today.
Choose Your WordPress Contact Form Conversion Tracking Method
You have three main approaches to track form submissions on WordPress. Each has different complexity levels and capabilities.
| Method | Complexity | Flexibility | Best For |
|---|---|---|---|
| Plugin Built-in Tracking | Low | Limited | Simple setups, single platform |
| Google Tag Manager | Medium | High | Multiple platforms, full control |
| Custom Code | High | Highest | Complex requirements, developers |
We recommend Google Tag Manager for most situations. It gives you complete control without touching WordPress code. You can send conversion data to Google Ads, Google Analytics, Facebook Pixel, and any other platform from one central location.
The GTM method also makes troubleshooting easier. You can preview changes before publishing. You can see exactly what fires and when. You maintain a version history of all tracking modifications.
Set Up Google Tag Manager for Form Tracking
Before you can track wordpress form submissions, you need Google Tag Manager installed on your site. This container system manages all your tracking codes from one interface.
Create Your GTM Container
Visit the Google Tag Manager website and create a free account. Set up a new container for your website. Choose “Web” as the container type. Google provides two code snippets after creation.
Install GTM on WordPress
You can add the GTM code manually to your theme or use a plugin. We recommend the official Google Tag Manager for WordPress plugin. Install it, enter your container ID (format: GTM-XXXXXX), and activate. The plugin handles code placement automatically.
Verify Installation
Open Google Tag Manager and click “Preview” in the top right. Enter your website URL. A new tab opens showing Tag Assistant. You should see your container connected. If not, check that the plugin is active and the container ID is correct.
Once GTM is installed, you control all tracking from the Tag Manager interface. You no longer need to edit WordPress files or update plugins to modify tracking behaviour. This separation makes your site more maintainable and secure.
If you prefer professional installation, our GTM setup service includes container creation, WordPress integration, and baseline tracking configuration.
Track Contact Form 7 Conversions with WordPress
Contact Form 7 is the most popular WordPress form plugin. Contact form 7 conversion tracking requires capturing the form submission event and sending it to your analytics platforms.
Contact Form 7 fires a DOM event called wpcf7mailsent whenever someone successfully submits a form. We will listen for this event and trigger our tracking tags.
Create the Custom Event Trigger
In Google Tag Manager, go to Triggers and click New. Name it “CF7 Form Submit”. Choose trigger type “Custom Event”. For the event name, enter exactly: wpcf7mailsent
Set Up the Data Layer Variable
Create a new User-Defined Variable. Choose type “Data Layer Variable”. Name it “CF7 Form ID”. Set the variable name to: contactFormId
This captures which specific form was submitted when you have multiple forms on your site.
Create Your Tracking Tag
Add a new Tag. Choose “Google Analytics: GA4 Event” as the tag type. Set the Measurement ID to your GA4 property. Enter “form_submission” as the event name. Add event parameters: form_id with value {{CF7 Form ID}} and form_type with value “contact_form_7”.
Attach the Trigger
In your new tag, scroll to Triggering. Select the “CF7 Form Submit” trigger you created. Save the tag.
Contact Form 7 includes the form ID in the event data automatically. You can use this to track different forms separately. If your contact page form converts better than your sidebar form, you will know.
Track WPForms Submissions to Google Ads
WPForms is the second most popular WordPress form solution. The wpforms google ads tracking process differs slightly from Contact Form 7 but follows the same principles.
WPForms fires a jQuery event called wpformsAjaxSubmitSuccess when someone successfully submits a form through AJAX. We capture this event and push data to the Tag Manager data layer.
Add the Data Layer Push Code
WPForms requires a small code snippet to push submission data to the data layer. Add this to your theme functions.php file or use a code snippets plugin:
add_action('wp_footer', function() {
echo "<script>
jQuery(document).on('wpformsAjaxSubmitSuccess', function(event, data) {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'wpforms_submission',
'formId': data.formId,
'formTitle': data.form.find('input[name=wpforms_title]').val()
});
});
</script>";
});
Create the GTM Trigger
In Google Tag Manager, create a new trigger. Choose “Custom Event” type. Name it “WPForms Submit”. Set the event name to: wpforms_submission
Set Up Form ID Variable
Create a Data Layer Variable named “WPForms ID” with the data layer variable name: formId
Build Your Tracking Tags
Create GA4 and Google Ads conversion tags as needed. Attach the “WPForms Submit” trigger. Include the form ID as a parameter so you can segment conversions by form.
WPForms also offers built-in integrations for some platforms, but the GTM method gives you more control. You can send the same conversion to multiple destinations without relying on plugin updates or premium features.
Connect Your WordPress Form Tracking to Google Ads
Tracking form submissions in Analytics helps you understand user behaviour. Sending that data to Google Ads optimises your campaigns. When you track wordpress form google ads conversions, the platform learns which searches and audiences convert.
Google Ads uses this conversion data to adjust bids automatically. Smart Bidding strategies like Target CPA and Maximise Conversions need conversion data to function. Without it, you cannot access the platform full capabilities.
Create the Conversion Action
Log into Google Ads and navigate to Goals then Conversions. Click the plus button. Choose “Website” as the conversion source. Select “Use Google Tag Manager” as the tracking method. Name your conversion “Contact Form Submit” or similar. Set the value and count preferences based on your business model.
Note Your Conversion Details
Google Ads provides a Conversion ID and Conversion Label. Copy both values. You will need these in Tag Manager. The Conversion ID looks like 123456789 and the Label looks like AbC1dEfG2HiJkLmN3.
Create the Google Ads Tag
In Google Tag Manager, create a new tag. Choose “Google Ads Conversion Tracking” as the tag type. Enter your Conversion ID and Conversion Label. Set the trigger to your form submission trigger (either CF7 or WPForms depending on your setup).
Configure Conversion Value
If each lead has a consistent value, enter it in the Conversion Value field. If lead value varies, leave it at 1 or use a variable to pass dynamic values. For most service businesses, a fixed value works well.
Google Ads needs at least 15 conversions in 30 days before Smart Bidding strategies work effectively. If your volume is lower, stick with manual bidding until you accumulate enough data. The system cannot optimise without sufficient learning data.
Our Google Ads management service includes conversion tracking setup and ongoing optimisation based on the conversion data you collect.
Send WordPress Contact Form Events to Google Analytics 4
Google Analytics 4 uses an event-based model. Every form submission should appear as a distinct event that you can analyse in your reports. This data shows you which pages and traffic sources generate the most conversions.
The GA4 configuration tag must load before your form submission tags fire. Tag Manager handles this automatically through built-in sequencing, but you need to set up the foundation correctly.
Install the GA4 Configuration Tag
If you have not already, create a GA4 Configuration tag. Choose “Google Analytics: GA4 Configuration” as the tag type. Enter your Measurement ID (format: G-XXXXXXXXXX). Set the trigger to “All Pages”. This tag loads the GA4 library on every page.
Create the Event Tag
Add a new tag with type “Google Analytics: GA4 Event”. Name it “GA4 Contact Form Submit”. For Configuration Tag, select your GA4 Configuration tag from the dropdown. This links the two tags together.
Name Your Event
In the Event Name field, enter “generate_lead”. This is a recommended event name in GA4 that appears in standard reports automatically. You can use a custom name, but recommended events get better reporting integration.
Add Event Parameters
Click “Add Parameter” to include additional data. Add a parameter called “form_name” with the value of your form ID variable. Add “form_destination” with value {{Page Path}}. These parameters let you segment conversions in GA4 reports.
Attach Your Form Trigger
Set the triggering condition to your form submission trigger. Save the tag. Now whenever someone submits your contact form, GA4 receives a generate_lead event with context about which form and page generated it.
GA4 reports update within 24 hours. You will find your events in the Realtime report immediately and in standard reports the next day. The Conversions report shows total form submissions. The Landing Page report shows which pages generate conversions.
Test and Verify Your WordPress Contact Form Conversion Tracking
Configuration means nothing without verification. You must test every tracking tag before you trust the data. Many tracking implementations appear to work but send incomplete or incorrect data.
Google Tag Manager Preview Mode shows you exactly what fires when you submit a form. This is your primary testing tool. You can see every tag that activates, every variable value, and every data layer event.
Enter Preview Mode
In Google Tag Manager, click “Preview” in the top right corner. Enter your website URL and click Connect. A new window opens with your site and Tag Assistant Connected message appears. You are now in debugging mode.
Navigate to Your Form
Go to a page with your contact form. In the Tag Assistant panel, you see all tags that fired on page load. Look for your GA4 Configuration tag. It should show “Tags Fired” status.
Submit the Form
Fill out your contact form with test data. Submit it. In Tag Assistant, a new event appears (wpcf7mailsent or wpforms_submission depending on your plugin). Click this event.
Verify Tag Firing
Under the event, you see which tags fired. Your GA4 Event tag and Google Ads Conversion tag should both appear under “Tags Fired”. If they appear under “Tags Not Fired”, click them to see why. Common issues include trigger mismatches or missing variables.
Check Variable Values
Click each fired tag to expand its details. Look at the “Variables” section. Your form ID variable should show a real value, not undefined. Page path should show the correct URL. If any variable shows undefined, your data layer push code may have issues.
Confirm in GA4 Realtime
Open Google Analytics 4 in another tab. Go to Reports then Realtime. You should see your event appear within seconds. If it does not, check that you selected the correct Configuration Tag in your Event tag settings.
Verify Google Ads Conversion
In Google Ads, go to Tools then Conversions. Click your conversion action. Wait 6-12 hours then check for a test conversion. Google Ads data has more delay than GA4. You will not see immediate confirmation.
Test multiple times from different pages if you have forms on various locations. Test from mobile devices. Different browsers can behave differently, though modern form plugins handle this well.
Schedule a retest one week after launch. Check that conversions appear in your reports with reasonable frequency. If you previously received 10 contact form submissions weekly but now show zero conversions, your tracking stopped working.
Common WordPress Contact Form Conversion Tracking Issues
Even correct implementations can develop problems. WordPress updates, plugin changes, and theme modifications can break tracking. Recognise these common issues and fix them quickly to avoid data gaps.
Get Professional Setup from Rahman Digital Agency
Available for UK and global clients. Full setup completed in under 24 hours by Md Mahmudur Rahman Ashik.
Specialising in Google Ads management, conversion tracking via GTM and GA4, and SEO content writing for UK and global clients.
