Gravity Forms

Gravity Forms Attribution Tracking

Know exactly which marketing channels, campaigns, and keywords drive your WordPress form leads. AttributionHub automatically captures attribution data and writes it into every Gravity Forms submission — no developer required.

Why You Need Attribution in Gravity Forms

Every lead that comes through your WordPress site has a story — a Google search, a LinkedIn ad click, a referral from a partner blog. But when that visitor fills out your Gravity Forms contact form, quote request, or demo booking, the marketing source disappears.

Your sales team sees a name and email. Your marketing team sees a conversion count. Nobody can connect the two.

AttributionHub solves this by capturing the full marketing journey and writing it directly into your Gravity Forms entries as hidden field values. Every lead arrives with its source, medium, campaign, keyword, and landing page attached.

What Data Gets Captured

UTM Parameters

Source, medium, campaign, term, and content — captured from the URL and stored with the lead.

Landing Page & Referrer

The first page a visitor lands on and where they came from, so you see the full entry path.

Channel & Source Category

Automatically classified as Paid Search, Organic Social, Email, Direct, and more — no manual tagging needed.

First Touch & Last Touch

Both the original source that brought the visitor and the most recent touchpoint before conversion.

How It Works

The integration takes three steps. No WordPress plugin installation is needed beyond adding a small script tag — the same way you would add Google Analytics or a Facebook pixel.

Step 1: Add the AttributionHub Script

Place your AttributionHub tracking snippet in your WordPress site header. You can add it via your theme's header settings, a plugin like Insert Headers and Footers, or Google Tag Manager.

<script src="https://cdn.attributionhub.com/attribution.js?id=YOUR_ID" async defer></script>

The script runs in the background, captures UTM parameters and visitor context on every page view, and stores attribution data in the browser until a form is submitted.

Step 2: Add Hidden Fields to Your Gravity Form

In the Gravity Forms editor, add hidden fields for each attribution data point you want to capture. The recommended field setup:

Hidden Field LabelParameter NameExample Value
Channelah_channelPaid Search
Sourceutm_sourcegoogle
Mediumutm_mediumcpc
Campaignutm_campaignspring-promo-2025
Keywordutm_termgravity forms tracking
Landing Pageah_landing_page/pricing
Referrerah_referrerlinkedin.com

Step 3: Verify With a Test Submission

Visit your site with UTM parameters appended to the URL, navigate to your form page, and submit a test entry. Then check the Gravity Forms entry detail — every hidden field should be populated with the correct attribution values.

https://yoursite.com/contact?utm_source=google&utm_medium=cpc&utm_campaign=spring-promo

Use Cases for WordPress Teams

B2B Lead Generation — Route Gravity Forms leads to your CRM with full source attribution. Know whether that enterprise demo request came from a Google Ad, an organic blog post, or a LinkedIn campaign.

Ecommerce & Quotes — If you use Gravity Forms for product inquiries or custom quote requests, attribution data tells you which products attract paid traffic versus organic interest.

Multi-Location Businesses — Track which location landing pages generate the most form submissions, and which advertising channels work best for each region.

Agency Reporting — Give clients clear proof of campaign ROI. Every lead in Gravity Forms carries the campaign name, source, and medium, making monthly reports straightforward to produce.

What Makes AttributionHub Different

Works Without Cookies

First-party data capture means attribution works even when third-party cookies are blocked or consent is declined.

No WordPress Plugin Needed

A single script tag handles everything. No plugin conflicts, no PHP compatibility issues, no database bloat.

Automatic Channel Detection

Visitors are automatically categorized into channels like Paid Search, Organic, Social, Email, and Direct.

Cross-Session Attribution

First-touch and last-touch data persist across sessions, capturing the full buyer journey even over weeks.

Frequently Asked Questions

Does this work with Gravity Forms conditional logic?

Yes. Hidden fields populated by AttributionHub work independently of conditional logic. Conditional rules on visible fields do not affect the hidden attribution fields.

Will it slow down my WordPress site?

No. The AttributionHub script loads asynchronously and is under 10 KB. It does not block page rendering and has no impact on Core Web Vitals scores.

Can I use this with other form plugins too?

Absolutely. AttributionHub works with any form that supports hidden fields, including WPForms, Contact Form 7, Ninja Forms, HubSpot Forms, and custom HTML forms.

How does it handle returning visitors?

AttributionHub stores first-touch attribution from the visitor's initial session and updates last-touch attribution on subsequent visits. When the form is submitted, both values are available so you can see the original source and the converting source.

Is the data GDPR compliant?

AttributionHub uses first-party storage only and does not track users across websites. No personally identifiable information is captured in attribution fields — only marketing parameters like UTM values and page URLs.


Start Tracking Your Gravity Forms Leads

Set up attribution tracking in under 5 minutes. See which campaigns, channels, and keywords actually drive form submissions on your WordPress site.

Get Started Free
Loading footer...