Track Instagram Ads in WordPress Forms: UTMs, Hidden Fields and Lead Reports
Google Analytics can show visits from Instagram campaigns, but it cannot show how many of those visitors became leads or customers when the sale happens later by email or phone. The workflow below closes that gap: tag each ad URL, store the source in the visitor's browser, write it into hidden form fields on submission, and report on the captured data in your form tool, CRM, or spreadsheet.
1. Tag every Instagram ad URL with UTM parameters
Start with the destination URL, then append the tracking parameters that identify the paid social click. A consistent naming pattern matters more than the exact values, because later reporting groups records by these values.
Use this mapping for Instagram ads:
- Medium: Paid social
- Source: Instagram
- Campaign: the campaign name
- Term: the ad set name
- Content: the specific ad
Example pattern: append utm_medium=paidsocial, utm_source=instagram and utm_campaign=brand-campaign to the landing page URL. Keep spelling consistent across campaigns; inconsistent values create fragmented reports even when the underlying click was the same.
2. Install the attribution code and add hidden fields
Install the attribution snippet on the WordPress site so the landing source is recognised on arrival. The snippet categorises the visit into channels comparable to those in Google Analytics, such as Paid Social, Paid Search and Organic Search, and stores that categorisation in a browser cookie. Storing it in a cookie is important because the visitor may browse several pages, leave, and return before submitting a form.
Then add hidden fields to each form that should capture attribution. The fields described for this workflow are:
- Channel
- Channel Drilldown 1
- Channel Drilldown 2
- Channel Drilldown 3
- Channel Drilldown 4
Most WordPress form builders support hidden fields, including Gravity Forms, Contact Form 7 and WPForms. Add the fields to every lead form you want to measure, not only the landing page form, because the cookie preserves the source across pages.
3. Let the code write the source into the form submission
When a visitor lands, the code reads the UTM values and other source signals, assigns a channel, and saves the result in the cookie. When the visitor later submits a form, the code writes the saved attribution into the hidden fields. The form builder then stores those values alongside the visible submission data, such as name, email and phone.
This is the key distinction from visit-only analytics: the attribution travels with the lead record itself, so it remains available after the browser session ends and after the lead is worked offline.
4. Use the captured data in your form tool, CRM or spreadsheet
Once captured, the same hidden-field data can be used in several places:
- In the form tool's Entries or Submissions table in WordPress Admin, to inspect individual leads
- In notification emails, so each lead's source is visible in the inbox
- In a CRM such as Salesforce, HubSpot or Pipedrive, via the form tool's native integration, for dashboards and pipeline reporting
- In a spreadsheet, via an add-on or a tool such as Zapier, for ad-hoc reporting
Checklist before relying on the data: confirm the UTM pattern is applied to every Instagram ad, the snippet loads on landing pages, hidden fields exist on every target form, and a test submission shows the expected channel and drilldown values in the Entries table.
Three reports to build from the captured data
Because the capture covers all lead sources, not only Instagram, the resulting data supports broader reporting:
- Leads by channel: monthly lead volume split across Organic Search, Paid Search, Paid Social and other channels, showing where to focus effort
- Leads by network: lead volume across Meta networks such as Instagram, Facebook, Messenger and WhatsApp, showing which network performs best and where budget should shift
- Leads by campaign: monthly leads split by Instagram campaign, showing which campaigns generate the most leads and deserve more time or budget
A useful decision rule: compare campaign lead volume against spend only after confirming that campaign names in UTM values match the names used in the ad account. Mismatched names will split one campaign into multiple report rows.
Wrap up
The complete loop is: tagged Instagram ad URL, attribution stored in a cookie, hidden fields populated at submission, and lead-level source data available in the form tool, CRM or spreadsheet. That loop identifies the exact campaign, ad set or ad behind each lead, rather than only counting visits. Before adopting any attribution tool for this workflow, check its current trial terms and signup process directly with the provider, since commercial terms can change and should be confirmed against the plan you intend to use.