AFL UTM Tracker Documentation

  1. Home
  2. Docs
  3. AFL UTM Tracker Documentation
  4. Contact Form 7 Integration
  5. Setup UTM conversion tracking for Contact Form 7 (CF7)

Setup UTM conversion tracking for Contact Form 7 (CF7)

You can easily capture the UTM parameters of your Contact Form 7 (CF7) submissions by using our AFL UTM Tracker plugin.

This article outlines the steps for you to verify that your next form submission comes attached with our Conversion Attribution Report.

Minimum Required Plugins

  • AFL UTM Tracker v2.9.0
  • Contact Form 7 v5.7.1

Steps

Before you continue below, please make sure you have read our Getting Started article which explains the plugin installation steps. Ensure that you have cleared all page cache after installation.

  1. Setup the Contact Form 7 Integration (optional).
  2. Edit Settings for Individual Forms (optional).
  3. Add Conversion Attribution Report into the E-mail Notification
  4. Test form submission.
  5. That’s all!

1. Setup the Contact Form 7 Integration (optional)

Contact Form 7 > Integrations Screenshot
Contact Form 7 > Integration Screenshot
  1. Login to your WordPress admin.
  2. Go to Contact > Integration.
  3. Under the AFL UTM Tracker section, click on the Setup Integration button.

The default global setting is set to be enabled for all of your forms. You have the option to change the global setting here and later enable/disable a particular in the form’s Additional Settings.

  • By default, ENABLE for all forms.
  • By default, DISABLE for all forms.
  • FORCE DISABLE for all forms.
Contact Form 7 > Integration > Setup Screenshot
Contact Form 7 > Integration > Setup Screenshot

2. Edit Settings for Individual Forms (optional)

Contact Forms 7 > Form Additional Settings
Contact Forms 7 > Form Additional Settings
  1. Go to Contacts > Contact Forms.
  2. Click Edit on a form.
  3. Click on the Additional Settings tab.

This is the default setting even when you have not added these settings into the textarea.

afl_wc_utm_enable_attribution: true
afl_wc_utm_conversion_type: lead
afl_wc_utm_cookie_expiry: 30

Attribution

Depending on your global setting, you can enable or disable attribution for a form by setting the value to ‘true’ or ‘false’ like below:

afl_wc_utm_enable_attribution: true
afl_wc_utm_enable_attribution: false

Conversion Type

If a particular form is for purchases, set the value to ‘order’ like below. This setting only accepts two options (lead or order).

afl_wc_utm_conversion_type: order
afl_wc_utm_conversion_type: lead

Cookie Expiry

Once the form is submitted, you can reduce the visitor’s cookie expiry so that a new session is created. If you would like the cookie to expire in 7 days of user inactivity, set the value to ‘7’ like below:

afl_wc_utm_cookie_expiry: 7

3. Add Conversion Attribution Report into the E-mail Notification

Contact Form > Mail Screenshot
Contact Form > Mail Screenshot

You can embed the Conversion Attribution Report into your e-mail notification by adding the shortcode like below:

  1. Go to Contacts > Contact Forms.
  2. Edit the form which you would like to embed the report.
  3. Click on the Mail tab.
  4. In the Message Body textarea, add the [afl_wc_utm] shortcode text.
  5. Check the “Use HTML content type”.
  6. Save.
Conversion Attribution Report
[afl_wc_utm]

4. Test Form Submission

Now it is time to test your form submission.

  1. Go to the Google’s Campaign URL Builder.
  2. Generate a UTM URL and copy the URL.
  3. To simulate a new visitor, launch your browser in Private Browsing Mode (Incognito).
  4. Paste the UTM URL into the address bar.
  5. Browse to your form’s page.
  6. Submit form.
  7. Wait for your e-mail notification to arrive.
  8. Verify that our Conversion Attribution Report is populated in the e-mail body.
Outlook Screenshot
Outlook Screenshot