If You Use WordPress, You May Need To Update Your Conversion Tracking. Here’s Why…
If your website is built in WordPress and contains at least one contact form, the odds are that you’re using a plugin known as Contact Form 7. Whilst there are other options and plugins available, Contact Form 7 (also referred to as CF7) is one of the most widely used plugins across the WordPress platform. For several years now it’s been possible to add a relatively small snippet of code into the settings area of CF7 in order for all form submissions to be tracked within Google Analytics. However, as of the beginning of 2018, this is no longer possible – On_Sent tracking is now deprecated in Contact Form 7.
Is the email tracking in your WordPress website no longer working? Find out why and how to fix it, below...
What Did This Tracking Do?
Will I Be Affected?
Firstly, it’s important to ascertain whether your website ticks the following boxes:
- Is it built in WordPress?
- Does it contain online contact forms?
- Were your forms created in Contact Form 7?
- Do the forms use On Sent tracking?
- Are you monitoring form submissions in Google Analytics?
If you answer ‘No’ to any of the above, then you’re likely to be unaffected by this change. However, if you answered ‘Yes’ to all of our questions, your conversion tracking may be at risk. But fear not, Varn are here to help.
If you’re unsure if you fill these criteria, please give the experts at Varn a call. We’d be happy to take a look at your website and advise on any potential risks.
The good news is that it’s still possible to track form submissions via CF7 without using this deprecated tracking. Put simply, we need to replace the On_sent tracking a different type of event tracking within the functions.php file of your WordPress site. Known as a DOM event, this tracking can be set up to apply to all forms site-wide or we can target individual forms by adding in an IF rule containing a specific form ID. See below for examples.
Previous on_sent tracking:
Updated DOM event tracking: