Track campaigns in Contact Form 7
Add UTMTrackr's tracking fields to a Contact Form 7 form, put the campaign in your notification email, and find the full entry.
- Applies to
- UTMTrackr 1.32.2 · UTMTrackr Lite 1.1.5 · Contact Form 7 6.x
- Edition
- UTMTrackr
- UTMTrackr Lite
- Last updated
On this page
UTMTrackr fills hidden fields in your Contact Form 7 form with the visitor's campaign details. You can also add those details to the notification email.
Before you start
- Contact Form 7 is active and you have a form.
- UTMTrackr is installed (UTMTrackr: with your license connected).
The quick way
Use One-Click Field Setup: it adds the hidden fields for you. See Add tracking fields in one click.
By hand
Step 1: Add hidden tags to the form
Go to Contact → Contact Forms, open your form and stay on the Form tab. Add one hidden tag per value you want, each on its own line (marker 1):
[hidden utm_source]
[hidden utm_medium]
[hidden utm_campaign]The name after hidden must be exactly the tracked key, for example utm_source, gclid or traffic_channel. See UTM parameters and click IDs explained for every key.
Step 2: Add the campaign to your notification email (optional)
Open the Mail tab. In Message body, add mail tags for the values you want in the email, for example [utm_source], [utm_medium], [utm_campaign] (marker 2). Then click Save.
You don't need the hidden tags for this: the mail tags work on their own. In UTMTrackr, every tracked key works as a mail tag, for example [gclid] or [traffic_channel]. In UTMTrackr Lite, the 5 UTM keys do.
Step 3: Know where the full entry is
Contact Form 7 doesn't store entries itself. To keep complete entries, install the free Flamingo plugin; entries then appear under Contact → Inbound.
In UTMTrackr, the Leads tab saves each entry that arrives with campaign details: tracking data only, never the visitor's name, email or message. When you open a lead, Full entry shows where the complete entry is (marker 3).
Check it worked
Follow Check that tracking works. The notification email shows the campaign lines, and in UTMTrackr your test lead appears on the Leads tab.
Good to know
- UTMTrackr fills the hidden fields when the form loads. When the form is sent, it also fills any of them that arrived empty, so the values still reach the entry and the email.
- Tag names must match the tracked keys exactly.
Related articles
Still need help?
Contact support. What support covers is in our support policy.
Using UTMTrackr Lite? Ask on its WordPress.org support forum.