Is Your WordPress Email Tracking Not Working? Find Out Why | Varn

Insights

16 January 2018

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

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.

Article by: Aimee, Head of Innovation More articles by Aimee

Share this article:


( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /home/varnco/public_html/varn2022co/wp-content/themes/varn/page-templates/content-post.php on line 81
Call Stack
#TimeMemoryFunctionLocation
10.0002353456{main}( ).../index.php:0
20.0003353736require( '/home/varnco/public_html/varn2022co/wp-blog-header.php' ).../index.php:17
30.726218690064require_once( '/home/varnco/public_html/varn2022co/wp-includes/template-loader.php' ).../wp-blog-header.php:19
40.728618694744include( '/home/varnco/public_html/varn2022co/wp-content/themes/varn/single.php' ).../template-loader.php:106
50.899523156432get_template_part( ).../single.php:2
60.899523157000locate_template( ).../general-template.php:206
70.899723157320load_template( ).../template.php:725
80.899923157864require( '/home/varnco/public_html/varn2022co/wp-content/themes/varn/page-templates/content-post.php' ).../template.php:792

Sign up for the latest SEO insights

Stay up to date with the very latest search marketing insights and news from Varn

Perform Better

Sign Up for Varn Insights
Sign Up for Latest Insights

Keep up to date with the latest search marketing news, insights, algorithm changes and research