Track campaigns in any other form
Fill a field on a plain HTML form, or a form builder without its own integration, by mapping a CSS selector to a tracked value.
- Applies to
- UTMTrackr 1.32.2 · UTMTrackr Lite 1.1.5
- Edition
- UTMTrackr
- UTMTrackr Lite
- Last updated
On this page
For a plain HTML form, or a form builder UTMTrackr has no integration for, you tell UTMTrackr exactly which field to fill. It never guesses: only the field you name is filled.
Before you start
- Your form has a field to hold the value, usually a hidden input inside the form, for example
<input type="hidden" name="hidden_source">. - You know a CSS selector that matches only that field. Your browser's Inspect tool shows the field's
nameorid.
Steps
Step 1: Enter the selector
Go to UTMTrackr → Field Mapping. Under Custom Field Mapping, enter the CSS selector of your field (marker 1), for example input[name="hidden_source"].
Step 2: Choose the value
Pick the value to put in it (marker 2), for example Campaign Source (utm_source).
Step 3: Add the mapping
Click Add mapping (marker 3). It appears in the table underneath. Repeat for each field.
Check it worked
Follow Check that tracking works. Your form's own entry, or its email, shows the value.
If something goes wrong
- The field stays empty: check that the selector matches the field in the page as it loads. Use your browser's Inspect tool on the live page, not on the form builder.
- The form appears later, for example in a pop-up: UTMTrackr fills fields when the page loads and tries again shortly after. A form that appears much later needs a small developer change; see the developer articles.
Good to know
Custom mappings fill the field in the visitor's browser only (after consent, if you use consent mode). The entry is not added to UTMTrackr's Leads tab.
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.