Contact Form 7 Submission DOM tracking

plugin banner

Track succesfull form submissions with Contact Form 7 using DOM events

Author:Apasionados (profile at wordpress.org)
WordPress version required:4.0.1
WordPress version tested:6.3.3
Plugin version:2.0
Added to WordPress repository:04-09-2017
Last updated:23-09-2023
Rating, %:100
Rated by:1
Plugin URI:
Total downloads:10 743
Active installs:800+
plugin download
Click to start download

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.

What can I do with this plugin?

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.

What ideas is this plugin based on?

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.

System requirements

PHP version 5.5 or greater.

TROUBLESHOOTING

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).

Submission DOM tracking for Contact Form 7 Plugin in your Language!

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.

Further Reading

You can access the description of the plugin in Spanish at: Submission DOM tracking for Contact Form 7 en español.

Contact

For further information please send us an email.


Screenshots
FAQ
ChangeLog