Integrating with Contact Form 7

Logging Contact Form 7 form submissions

Note: This script requires Jquery library on your website.
  1. First, activate the Form Listener extension.
  2. Then, insert the following snippet into your Client Script (Settings > Tracking Script).
    Replace "/path-to-page-with-your-form/" with the actual path to the specific page containing your form, and replace the "Contact Form submitted" with the Goal Name that you want for this form.
var mtr_client_script = mtr_client_script || (function () {
  function init() {
    if (window.location.pathname === '/path-to-page-with-your-form/') {
         jQuery('.wpcf7-form').on('submit', function () {
            mtr.goal('Contact Form submitted');
  return {}

Related articles

Still need help? Contact Us Contact Us