UTM Tracker for Contact Form 7

Description

UTM Tracker for Contact Form 7 helps you track the source of every lead by automatically capturing UTM parameters from URLs and attaching them to form submissions.

Perfect for:
– Marketers who want to see which ads generate leads
– Agencies proving ROI to clients
– Business owners avoiding wasted ad spend

If you run Google Ads, Meta Ads, or other paid/organic campaigns with UTM parameters in your URLs, this plugin automatically:
1. Detects UTM parameters when a visitor arrives.
2. Stores them in cookies (up to 30 days).
3. Appends them to your Contact Form 7 submission — works with plain text & HTML emails.

Works with popular caching plugins (e.g., WP Rocket, LiteSpeed, W3 Total Cache) and optimized for high-performance sites.

Key Features

  • Tracks all standard UTM parameters + utm_id (Campaign ID)
  • Works even if users browse multiple pages before submitting
  • Stores UTM values for 30 days in cookies
  • Compatible with HTML & plain text CF7 emails
  • Backward compatible with WP 5.6.15 & CF7 5.1.9
  • Zero coding needed — activate and go
  • Fully compatible with cached pages

How It Works

  1. Visitor lands on a page with UTM parameters:
    https://yoursite.com/?utm_source=google&utm_medium=cpc&utm_campaign=spring_sale&utm_id=12345
  2. Plugin saves the UTM values in cookies.
  3. When they submit a CF7 form, the UTM data is included in the email.
  4. You instantly see which campaign generated the lead.

Screenshots

  • Admin settings panel to select which CF7 forms to enable UTM tracking.
  • Example email showing injected UTM data.
  • Browser address bar with UTM parameters before form submission.

Installation

  1. Upload to /wp-content/plugins/ or install via Plugins Add New.
  2. Activate the plugin.
  3. Go to Settings UTM Tracker for Contact Form 7 and enable tracking for your desired forms.
  4. Test by submitting a form with UTM parameters in the URL.

FAQ

What is UTM tracking and why is it important?

UTM tracking identifies where your website visitors and leads come from. By adding UTM parameters such as utm_source or utm_campaign to your links, you can measure campaign performance in detail.
Example: You can see if a lead came from Google Ads, Facebook, or an email newsletter. This plugin automatically captures that data in Contact Form 7 submissions — no manual work required.

How do I set up UTM tracking with Contact Form 7?

  1. Install and activate Contact Form 7 (required).
  2. Install and activate UTM Tracker for Contact Form 7.
  3. Open Settings UTM Tracker for Contact Form 7 and select the forms that should track UTM data.
  4. Visit a URL with UTM parameters, for example:
    https://example.com/?utm_source=google&utm_medium=cpc&utm_campaign=summer_sale&utm_id=12345
  5. Submit the form — the UTM values will appear in your email notification.

Need a detailed guide? Visit the UTM Tracker Setup Tutorial.

Does it work with cached or static pages?

Yes. The plugin stores campaign values in cookies when a visitor first arrives, so even with popular caching plugins (e.g., WP Rocket, LiteSpeed, W3 Total Cache), the data is preserved until the form is submitted.

Which UTM parameters does this plugin capture?

The plugin supports all common UTM parameters and the newer Campaign ID (utm_id):
utm_source – Traffic source (e.g., google, facebook, newsletter)
utm_medium – Marketing medium (e.g., cpc, email, display)
utm_campaign – Campaign name (e.g., summer_sale, product_launch)
utm_term – Paid keyword
utm_content – Ad variation or content label
utm_id – Campaign ID for platforms like Google Ads

How long is UTM data stored?

By default, campaign values are stored for 30 days. This helps track leads who convert later. The duration can be changed with a simple code snippet — see the Developer Documentation.

Can this plugin help prove marketing ROI?

Yes. Businesses and agencies can see exactly which campaigns, ads, or sources generate form submissions. This makes it easier to allocate ad spend to the highest-performing channels.

Is it GDPR compliant?

Yes. The plugin stores only non-personal UTM values in cookies. No personal data is collected or transmitted. However, update your privacy policy to mention UTM cookie usage.

Will it slow down my website?

No. The plugin is lightweight, uses minimal JavaScript, and does not add heavy assets. It’s fully compatible with high-performance hosting and caching setups.

If you need extra functionality beyond UTM tracking — like custom reporting, integrations, or automation — I offer custom plugin development for WordPress.

Reviews

octubre 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 1 review

Contributors & Developers

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

Contributors

Changelog

1.4

  • Added utm_id (Campaign ID) support
  • HTML email compatibility
  • Improved sanitization & performance
  • Verified WP 5.6.15 + CF7 5.1.9 support

1.3

  • Added JS hydration for CF7 forms
  • Fixed email formatting
  • Added fallback logic for missing values

1.2

  • Added form selection UI in settings
  • Improved settings UX

1.1

  • First public release