Title: UTM Tracker for Contact Form 7
Author: Adnan Buksh
Published: <strong>July 26, 2025</strong>
Last modified: June 10, 2026

---

Search plugins

![](https://ps.w.org/utm-tracker-for-contact-form-7/assets/banner-772x250.png?rev
=3334582)

![](https://ps.w.org/utm-tracker-for-contact-form-7/assets/icon-256x256.png?rev=
3334582)

# UTM Tracker for Contact Form 7

 By [Adnan Buksh](https://profiles.wordpress.org/adnanbuksh/)

[Download](https://downloads.wordpress.org/plugin/utm-tracker-for-contact-form-7.1.6.zip)

 * [Details](https://en-ca.wordpress.org/plugins/utm-tracker-for-contact-form-7/#description)
 * [Reviews](https://en-ca.wordpress.org/plugins/utm-tracker-for-contact-form-7/#reviews)
 *  [Installation](https://en-ca.wordpress.org/plugins/utm-tracker-for-contact-form-7/#installation)
 * [Development](https://en-ca.wordpress.org/plugins/utm-tracker-for-contact-form-7/#developers)

 [Support](https://wordpress.org/support/plugin/utm-tracker-for-contact-form-7/)

## Description

**UTM Tracker for Contact Form 7** automatically captures UTM parameters from incoming
URLs and attaches them to Contact Form 7 submissions.

This allows website owners, marketers, and agencies to see **exactly where their
leads come from**.

If you run marketing campaigns using UTM parameters, the plugin detects them when
visitors arrive and stores them in cookies so they can be attached to the form submission
later.

Works perfectly even if visitors browse multiple pages before submitting the form.

Perfect for:

• Marketers running Google Ads or Meta Ads campaigns
 • Agencies proving campaign
ROI to clients • Businesses tracking lead sources from paid traffic • Developers
implementing attribution tracking in Contact Form 7

Example campaign URL:

https://thewebfreelancer.com/?utm_source=google&utm_medium=cpc&utm_campaign=spring_sale&
utm_id=12345

When a visitor lands on your site with UTM parameters:

 1. The plugin detects and stores the UTM values in cookies
 2. Visitors can navigate your website normally
 3. When they submit a Contact Form 7 form, the UTM data is automatically included 
    in the email notification

This helps you understand **which campaigns generate real leads**.

The plugin is lightweight, privacy-friendly, and optimized for performance.

### Key Features

• Automatically captures UTM parameters in Contact Form 7 submissions
 • Supports
utm_source, utm_medium, utm_campaign, utm_term, utm_content and utm_id • First-touch
attribution using cookies (stored for 30 days) • Works even if visitors browse multiple
pages before submitting the form • Compatible with HTML and plain text Contact Form
7 emails • Works with cached pages and performance plugins • Lightweight and optimized
for high-performance WordPress sites • No manual field setup required

### Supported UTM Parameters

This plugin captures the following campaign parameters automatically:

• utm_source – Traffic source (google, facebook, newsletter)
 • utm_medium – Marketing
medium (cpc, email, display) • utm_campaign – Campaign name • utm_term – Paid keyword
tracking • utm_content – Ad variation or content label • utm_id – Campaign ID used
in platforms like Google Ads

All captured values are attached to Contact Form 7 submissions.

### Privacy

This plugin stores UTM parameters in browser cookies for up to 30 days in order 
to track marketing campaign attribution.

No personal data is collected, stored, or transmitted by the plugin itself.

Website owners should ensure their privacy policy mentions the use of marketing 
attribution cookies if required by local regulations such as GDPR.

### Documentation

For a complete setup tutorial and implementation guide:

https://thewebfreelancer.com/utm-tracker-for-contact-form-7/?utm_source=wordpress-
plugin&utm_medium=documentation&utm_campaign=utm-tracker-cf7

### About the Developer

This plugin is developed and maintained by **Adnan Buksh**, a freelance WordPress
developer specializing in custom development, plugin engineering, and performance
optimization.

If you need help with WordPress development, custom plugins, or technical SEO improvements,
you can learn more here:

https://thewebfreelancer.com/?utm_source=wordpress-plugin&utm_medium=developer-section&
utm_campaign=utm-tracker-cf7

## Screenshots

[⌊Admin settings panel for enabling UTM tracking on selected forms.⌉⌊Admin settings
panel for enabling UTM tracking on selected forms.⌉[

Admin settings panel for enabling UTM tracking on selected forms.

[⌊Example Contact Form 7 email showing captured UTM parameters.⌉⌊Example Contact
Form 7 email showing captured UTM parameters.⌉[

Example Contact Form 7 email showing captured UTM parameters.

[⌊Example URL containing UTM campaign parameters.⌉⌊Example URL containing UTM campaign
parameters.⌉[

Example URL containing UTM campaign parameters.

## Installation

 1. Upload the plugin to `/wp-content/plugins/` or install via **Plugins  Add New**.
 2. Activate the plugin.
 3. Go to **Settings  UTM Tracker for Contact Form 7**.
 4. Select which forms should track UTM parameters.
 5. Test using a URL with UTM parameters.

Example test URL:

https://thewebfreelancer.com/?utm_source=test&utm_medium=cpc&utm_campaign=demo

Submit the form and confirm the UTM values appear in the email notification.

## FAQ

### What is UTM tracking?

UTM tracking allows you to identify where your website visitors and leads come from
by adding special parameters to your URLs.

Example:

    ```
    ?utm_source=google&utm_medium=cpc&utm_campaign=spring_sale
    ```

This plugin automatically captures those values and attaches them to Contact Form
7 submissions.

### Does the plugin work with cached pages?

Yes. The plugin stores campaign values in cookies when visitors first arrive.

Because of this approach, it works with popular caching plugins such as LiteSpeed
Cache, WP Rocket, and W3 Total Cache, and others.

### How long are UTM values stored?

By default, UTM values are stored for **30 days** in browser cookies.
 This allows
tracking visitors who return later to submit a form.

Developers can customize this duration using a WordPress filter if needed. See the
documentation for implementation details.

### Is this plugin GDPR compliant?

Yes. The plugin only stores campaign tracking parameters in cookies and does not
collect personal data.

However, you should update your website privacy policy to mention the use of marketing
attribution cookies.

### Will this plugin slow down my website?

No. The plugin is lightweight and only loads minimal JavaScript required to populate
hidden fields.

It is designed to work efficiently even on high-traffic or cached websites.

## Reviews

![](https://secure.gravatar.com/avatar/2e264c864e9f0e66c9a2b21d8170224ec98849cf5cd9f077a8b8ff943a7a661c?
s=60&d=retro&r=g)

### 󠀁[A total lifesaver for marketing!](https://wordpress.org/support/topic/a-total-lifesaver-for-marketing/)󠁿

 [mydigitalgrowth](https://profiles.wordpress.org/mydigitalgrowth/) March 10, 2026

Finally! This plugin solved my tracking issues instantly. It works very well and
captures all the essential data (source, medium, campaign, etc.) perfectly. Highly
recommended for anyone running ads or tracking ROI on their WordPress site.

![](https://secure.gravatar.com/avatar/67377a082a434b29b6001493869e46847e6ff2cc88a9c70cc3b49d25a9132b89?
s=60&d=retro&r=g)

### 󠀁[Must-have plugin for marketers using Contact Form 7](https://wordpress.org/support/topic/must-have-plugin-for-marketers-using-contact-form-7/)󠁿

 [iqrabuksh](https://profiles.wordpress.org/iqrabuksh/) October 26, 2025

UTM Tracker for Contact Form 7 does exactly what it promises: preserves UTM parameters
through redirects and stores them with Contact Form 7 submissions. Setup took less
than a minute and it’s extremely lightweight — no performance hit on our site. We’ve
already recovered missing campaign data and improved our attribution. Great plugin
from a focused developer. Thanks!

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/utm-tracker-for-contact-form-7/reviews/)

## Contributors & Developers

“UTM Tracker for Contact Form 7” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Adnan Buksh ](https://profiles.wordpress.org/adnanbuksh/)

[Translate “UTM Tracker for Contact Form 7” into your language.](https://translate.wordpress.org/projects/wp-plugins/utm-tracker-for-contact-form-7)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/utm-tracker-for-contact-form-7/),
check out the [SVN repository](https://plugins.svn.wordpress.org/utm-tracker-for-contact-form-7/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/utm-tracker-for-contact-form-7/)
by [RSS](https://plugins.trac.wordpress.org/log/utm-tracker-for-contact-form-7/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.6

 * Tested up to WordPress 7.0
 * Plugin fully compatible with WordPress 7.0

#### 1.5

 * Tested with WordPress 6.9
 * Improved cookie security (secure, httponly, and samesite flags)
 * Replaced deprecated PHP function for PHP 8.1+ compatibility
 * Enhanced compatibility with caching plugins
 * Minor performance improvements

#### 1.4

 * Added utm_id support
 * HTML email compatibility
 * Improved sanitization and performance

#### 1.3

 * Added JS hydration for CF7 forms
 * Fixed email formatting issues

#### 1.2

 * Added form selection UI in settings

#### 1.1

 * First public release

## Meta

 *  Version **1.6**
 *  Last updated: **4 months ago**
 *  Active installations: **400+**
 *  WordPress Version: ** 5.6 or higher **
 *  Tested up to: **7.0.7**
 *  PHP Version: ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/utm-tracker-for-contact-form-7/)
 * Tags:
 * [contact form 7](https://en-ca.wordpress.org/plugins/tags/contact-form-7/)[marketing attribution](https://en-ca.wordpress.org/plugins/tags/marketing-attribution/)
   [utm parameters](https://en-ca.wordpress.org/plugins/tags/utm-parameters/)[utm tracking](https://en-ca.wordpress.org/plugins/tags/utm-tracking/)
 *  [Advanced View](https://en-ca.wordpress.org/plugins/utm-tracker-for-contact-form-7/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/utm-tracker-for-contact-form-7/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/utm-tracker-for-contact-form-7/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/utm-tracker-for-contact-form-7/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/utm-tracker-for-contact-form-7/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/utm-tracker-for-contact-form-7/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/utm-tracker-for-contact-form-7/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/utm-tracker-for-contact-form-7/reviews/)

## Contributors

 *   [ Adnan Buksh ](https://profiles.wordpress.org/adnanbuksh/)

## Support

Issues resolved in last two months:

     0 out of 2

 [View support forum](https://wordpress.org/support/plugin/utm-tracker-for-contact-form-7/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://thewebfreelancer.com/?utm_source=wordpress-plugin&utm_medium=donate-link&utm_campaign=utm-tracker-cf7)