Insights

16th January 2018

If You Use WordPress, You May Need To Update Your Conversion Tracking. Here’s Why…

WordPress Contact Form 7 On Send Tracking Not Working

What Did This Tracking Do?

Known as ‘on_sent’ tracking, this snippet would automatically execute a JavaScript code upon the successful submission of a form. This could be used to fire an Event within Google Analytics which could subsequently be tracked as a goal; it could alternatively be used to redirect users to a Thank You page upon completion – which could also be tracked within Google Analytics as a destination page goal. Either way, it made tracking online form conversions pretty straight forward.

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.

What’s Next?

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:

GA Tracking on-send

Updated DOM event tracking:

On Sent Tracking Is Now Deprecated in Contact Form 7

For more information, visit the Contact Form 7 website or get in touch with the professionals at Varn.