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://webfreelancer.in/?utm_source=google&utm_medium=cpc&utm_campaign=spring_sale&utm_id=12345
When a visitor lands on your site with UTM parameters:
- The plugin detects and stores the UTM values in cookies
- Visitors can navigate your website normally
- 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://webfreelancer.in/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://webfreelancer.in/?utm_source=wordpress-plugin&utm_medium=developer-section&utm_campaign=utm-tracker-cf7
Screenshots
Installation
- Upload the plugin to
/wp-content/plugins/or install via Plugins Add New. - Activate the plugin.
- Go to Settings UTM Tracker for Contact Form 7.
- Select which forms should track UTM parameters.
- Test using a URL with UTM parameters.
Example test URL:
https://webfreelancer.in/?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_saleThis 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
Contributors & Developers
“UTM Tracker for Contact Form 7” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “UTM Tracker for Contact Form 7” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
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


