WPForms Attribution Tracking
Connect every WPForms submission to the marketing channel that drove it. AttributionHub automatically captures UTM data, referrers, and landing pages — then writes them into your form entries as hidden field values.
Why WPForms Users Need Marketing Attribution
WPForms makes building WordPress forms dead simple. Drag, drop, publish. But when leads start coming in, you're left wondering: which ones came from paid ads? Which ones found you through organic search? Which campaign brought in that perfect-fit client?
Without attribution data attached to each submission, you're making marketing decisions based on aggregate analytics. You know your site got 500 visitors from Google Ads last month, and you got 20 form submissions. But you can't tell which of those 20 came from ads versus organic search.
AttributionHub closes that loop. It captures the visitor's marketing journey and stores it right inside each WPForms entry using hidden fields.
What Data Gets Captured
UTM Parameters
Source, medium, campaign, term, and content — grabbed from the URL and stored with every form entry.
Landing Page & Referrer
The first page the visitor landed on and the site that sent them there, giving you entry point visibility.
Channel Category
Leads are automatically categorized as Paid Search, Organic, Social, Email, Direct, or Referral.
First Touch & Last Touch
Capture both the first marketing source and the most recent one before conversion — essential for longer buying cycles.
How It Works
Step 1: Add the AttributionHub Script
Place the tracking script in your WordPress site header:
<script src="https://cdn.attributionhub.com/attribution.js?id=YOUR_ID" async defer></script>
You can add it through your theme settings, a header injection plugin, or Google Tag Manager.
Step 2: Add Hidden Fields in WPForms
Open your form in the WPForms builder and drag Hidden Field elements from the Fancy Fields section. You'll need WPForms Pro or higher for hidden field support.
| Hidden Field Label | Field Name | Example Value |
|---|---|---|
| Channel | ah_channel | Organic Search |
| Source | utm_source | |
| Medium | utm_medium | organic |
| Campaign | utm_campaign | blog-content |
| Keyword | utm_term | best wordpress forms |
| Landing Page | ah_landing_page | /blog/form-builders |
| Referrer | ah_referrer | twitter.com |
Step 3: Configure Field Mapping
WPForms uses numeric field IDs (like wpforms[fields][7]) in the HTML. You'll
need to map these to AttributionHub's field names so the script knows which
hidden fields to populate. Check the WPForms integration guide for
field mapping details.
Step 4: Verify the Integration
Visit your site with UTM parameters and submit a test form:
https://yoursite.com/contact?utm_source=facebook&utm_medium=paid-social&utm_campaign=retargeting
Open the WPForms entry detail view — the hidden field values should contain the correct attribution data.
Use Cases
Service Businesses — Track whether quote requests come from Google Ads, Facebook campaigns, or organic search. Know which channel delivers the highest-quality inquiries.
Membership Sites — See which marketing sources drive signup form submissions. Compare the conversion value of paid traffic versus content marketing.
Real Estate & Insurance — When leads fill out quote request forms, attribution data tells your team exactly which campaign brought them in, making follow-up conversations more informed.
WordPress Freelancers & Agencies — Add attribution tracking to client sites and deliver clear reports showing which marketing efforts generate real leads.
What Makes AttributionHub Different
No Extra WordPress Plugin
A single script tag on your site. No PHP files, no plugin directory clutter, no compatibility testing needed.
Works With WPForms Integrations
Attribution data flows through WPForms integrations with Salesforce, HubSpot, Zapier, and others — hidden field data is included.
Privacy-First Tracking
Uses first-party storage only. No cross-site tracking, no third-party cookies, no PII collection.
Cross-Session Memory
Remembers first-touch attribution across sessions. Even if a visitor returns weeks later, the original source is preserved.
Frequently Asked Questions
Does this work with WPForms Lite?
WPForms Lite doesn't support hidden fields, so you'll need WPForms Pro or higher for the hidden field approach. However, you can still use AttributionHub's custom field rules for alternative field population methods.
Will attribution data show in WPForms email notifications?
Yes. Hidden field values are included in WPForms notification emails and entry exports, just like any other form field data.
Can I use this alongside WPForms' own geolocation or user journey addons?
Yes. AttributionHub populates hidden fields independently and works alongside any WPForms addon without conflict.
Does it affect form loading speed?
No. The script loads asynchronously and is under 10 KB. It doesn't interfere with WPForms' rendering or submission process.
Start Tracking Your WPForms Leads
Set up attribution tracking in minutes. Know exactly which channels, campaigns, and keywords drive your WordPress form submissions.
Get Started Free