Capture UTM parameters in Framer forms
Pass campaign attribution into Framer with every lead, so reporting can connect channels, campaigns and landing pages to enquiries and revenue instead of relying on clicks alone.
Why attribution belongs on the lead record
Without attribution on the lead record, teams cannot tell which work produced enquiries. Capturing UTM values in Framer and forwarding them to a CRM makes it possible to report by channel, campaign and ad, and to compare those results with revenue rather than visits alone.
Four-step setup
Step 1: Add the site code through Framer Custom Code at the end of the head area, or through Google Tag Manager if that is already in use. Step 2: In the Framer editor, add a new input to each form and set its type to Hidden. Step 3: Create the six fields listed in the field map below. Step 4: Submit a test form and confirm the hidden values arrive with the visible fields.
How the values are stored and filled
On arrival, the code reads campaign information from the URL, categorises the visit into channels such as Paid Search, Organic Search or Paid Social, and stores it in the browser. When a form is completed, it writes those values into the hidden fields. Because storage happens at first landing, a visitor who clicks an ad, browses several pages and later uses a contact form still carries the original attribution.
Worked example
Example: a visitor clicks a Google ad for a clear-aligner consultation, lands on the treatment page and books a consultation. The form would carry Paid Search as the channel, Google as the first drilldown, the adult campaign name as the second, the search phrase as the third, the full landing URL and /treatments as the landing page group. That pattern lets a practice see which search terms and pages produce booked consultations.
Beyond raw UTM parameters
Raw UTM capture covers only tagged paid visits and only when the form is on the landing page. A channel-based approach also covers Organic Search, Organic Social, Direct and Referral, persists across browsing and return visits, and adds landing page and group. It can also capture GCLID, MSCLKID and FBCLID, which can later be sent back to ad platforms when a lead becomes a customer so optimisation targets paying customers.
Using the captured data
After submission, view values where Framer stores submissions, add them to new-lead notification emails, or forward them through Framer webhooks to a CRM. Zapier or Make can also push them to a spreadsheet, email platform or other tool. Useful reports include leads by channel each month, leads by Meta network, customers by Google Ads campaign, and revenue by keyword when keywords are included in UTM tracking templates.
Pre-launch checklist
Checklist before launch: code installed once site-wide, six hidden fields present on every lead form, field names match the receiving CRM, a test submission from a tagged URL shows correct values, a test from an organic visit shows a channel, and notification emails and CRM records both display the attribution fields.
| Hidden field | What it records |
|---|---|
| Channel | Broad channel such as Paid Search or Organic Search |
| Channel Drilldown 1 | First level of detail, such as the platform |
| Channel Drilldown 2 | Campaign-level detail |
| Channel Drilldown 3 | Ad or keyword-level detail |
| Landing Page | Full URL of the first landing page |
| Landing Page Group | Subdirectory grouping of the landing page |
Field names as listed in the source setup steps.
| Report | Decision it supports |
|---|---|
| Leads by Channel | Where enquiries originate each month |
| Leads by Facebook Ads Network | Which Meta network produces most leads |
| Customers by Google Ads Campaign | Which campaigns produce paying customers |
| Revenue by Keyword | Which keywords drive revenue and merit higher bids or SEO focus |
Example reports described in the source; actual data depends on CRM implementation.
Frequently asked questions
What is needed to capture UTM data in a Framer form?
Add the site code, create six hidden fields for channel, drilldowns, landing page and landing page group, then let the code fill those fields at submission so Framer captures them with the lead details.
Does the data survive if a visitor browses before submitting?
Yes. Attribution is stored in the browser on first arrival, so browsing other pages or returning later does not erase the original campaign details before the form is submitted.
What about leads from organic channels without UTM parameters?
Organic Search, Organic Social, Direct, Referral and other channels without UTM parameters can still be categorised and passed through, giving coverage beyond paid campaigns.
How do click IDs help after a lead is captured?
Captured click IDs can be returned to the ad platform when a lead becomes a customer, allowing optimisation toward paying customers rather than only form submissions.