WPForms
98The best WordPress contact form plugin. Drag & Drop form builder to create beautiful contact forms, paymen...
Track succesfull form submissions with Contact Form 7 using DOM events
Submission DOM Tracking for Contact Form 7 is a WordPress plugin designed to track successful form submissions using DOM events. It allows you to record submissions as Google Analytics events, page views, or Facebook Pixel leads. Additionally, the plugin can hide the contact form after a successful submission and limit the loading of Contact Form 7 styles and JavaScript to only those pages that contain forms.
This plugin is suitable for users who need to track form submissions on their websites and want to manage the performance of Contact Form 7 by deregistering its scripts on pages without forms. It is particularly useful for those already using Contact Form 7 and looking for a solution following the deprecation of the on_sent_ok setting.
Best for: This plugin suits website owners using Contact Form 7 who want to track submissions and manage script loading efficiently.
What it does well
Where it falls short
Submission DOM Tracking for Contact Form 7 provides a straightforward solution for tracking form submissions, though it has limitations regarding compatibility with certain other plugins.
apasionados's own description of Submission DOM tracking for Contact Form 7, lightly tidied.
The “on_sent_ok” and its sibling setting “on_submit” of the Contact Form 7 plugin are deprecated and scheduled to be abolished by the end of 2017. The recommended alternative to on_sent_ok is using DOM events (More info: on_sent_ok Is Deprecated). This plugin helps to set these DOM events to track form submissions (Google Analytics event, Google Analytics page view and Facebook pixel).
You can also hide the form after correct submission and deregister the Contact Form 7 styles and JavaScript on pages without forms.
Please note that this plugin does not work with Google Analytics v4.
This plugin tracks succesfull form submissions with Contact Form 7 using DOM events. You can track the form submissions as Google Analytics Event, as Google Analytics page view or as Facebook Pixel Lead.
The plugin also gives the option to hide a contact form after succesfull form submissions.
And finally it also has the option to include the styles and JavaScript of Contact Form 7 only on pages with contact forms and not on all pages which is the standard behaviour of Contact Form 7.
This plugin is based on the instructions of the author of Contact Form 7 when he anounced that on_sent_ok Is Deprecated. We needed a solution for the sites we are running for ourselves and for our customers.
PHP version 5.5 or greater.
Before creating a support ticket for Submission DOM tracking for Contact Form 7 please have a look at the Troubleshooting section of the FAQ and specially at the Are there any known incompatibilities? section (in short: the plugin doesn’t work with Contact Form 7 redirection plugins or add-ons for Contact Form 7 that redirect the user in some form using the DOM events and the Facebook lead isn’t recorded when using PixelYourSite).
This first release is avaliable in English and Spanish. In the “languages” folder we have included the necessarry files to translate this plugin.
If you would like the plugin in your language and you’re good at translating, please drop us a line at Contact us.
Other plugins for building forms.
The best WordPress contact form plugin. Drag & Drop form builder to create beautiful contact forms, paymen...
The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam sol...
Get a fast contact form plugin. Create advanced forms using drag and drop form builder with all smart features...
Best WordPress form builder plugin. Create contact forms, payment forms & order forms with 1000+ integrati...
Save and manage Contact Form 7 messages. Never lose important data. It is a lightweight contact form 7 databas...
Elementor forms builder to create WordPress forms like contact form, booking form, feedback form, survey form,...