🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Lead Source & UTM Attribution Premium Add-on Setup Guide

Updated 6 min read Gravity Forms Analytics & Ad Tracking
On this page
  1. Video walkthrough
  2. Step 1: Install and Activate Your License
  3. Step 2: Choose the Tracking Settings
  4. Consent
  5. Step 3: Tag Your Campaigns
  6. What Is Recorded
  7. How Channels Are Decided
  8. Where the Data Appears
  9. Entry screen
  10. Entries list, filters, exports and feeds
  11. Merge tags
  12. Hidden fields
  13. Lead Sources report
  14. Privacy
  15. Limits and What Is Not Included in v1.0
  16. Troubleshooting & FAQ
  17. Every entry says Direct.
  18. Visits from my payment page show as Referral.
  19. Does it work with page caching?
  20. How do I send the source to my CRM?
  21. What happens when I uninstall the add-on?

Video walkthrough

Track Lead Source and UTM Parameters in Gravity Forms (No Code)
Watch: see where every Gravity Forms lead came from Watch on YouTube

The Gravity Forms Lead Source & UTM Attribution Premium Add-on records where every lead came from: the channel, UTM tags, ad click ID, referrer and landing page of the first visit and of the latest marketing visit before the form was sent. The values are saved with the entry, so you can see them on the entry screen, filter and export by them, send them to your CRM and report on them.

This guide covers installation, the settings, what is recorded, where the data appears, how channels are decided, privacy and consent, the limits of version 1.0 and troubleshooting.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.9 or higher, any licence
  • GravityExtra license: The add-on installed, activated and licensed with an active GravityExtra license key

Step 1: Install and Activate Your License

  1. In WordPress go to Plugins → Add New → Upload Plugin, upload the add-on ZIP file and click Activate.
  2. Go to Forms → Settings → Lead Source, enter your key in the Gravity Extra License section and click Activate License.
  3. From that moment every new entry records its source. Entries created earlier stay as they are.

Step 2: Choose the Tracking Settings

The Tracking and Consent sections appear on the same settings page once the license is active.

Lead Source tracking settings: load the tracking script on every page or only on pages with a form, remember the source for 90 days, and a list of ignored referrers such as paypal.com and stripe.com
Tracking settings: where the script loads, how long the source is kept and which referrers are ignored.
  • Load the tracking script: On every page is recommended, because visitors often arrive on a blog post or landing page and only fill in the form later. Choose Only on pages that show a form if you only want the source of the page with the form.
  • Remember the source for (days): how long the first touch is kept, between 1 and 730 days. 90 days suits most businesses; use a longer period for long sales cycles.
  • Ignore these referrers: one domain per line. Visitors coming back from these sites keep their earlier source. Payment and sign-in pages are listed by default, so a return from a payment page does not count as a referral.
  • Always: the first-party cookie is stored for every visitor.
  • Only after consent through the WP Consent API: works with consent plugins that support the WP Consent API. Choose the consent category (Marketing by default). The cookie is written as soon as the visitor gives consent, also on the same page.
  • Only when a consent cookie is present: enter the name of the cookie your consent banner sets and, optionally, a text its value must contain.

Without consent nothing is stored in the browser, but the form still records the source of the page it was sent from (its UTM tags, click ID and referrer).

Step 3: Tag Your Campaigns

Use UTM tags on the links in your ads, emails, social posts and partner sites, for example ?utm_source=newsletter&utm_medium=email&utm_campaign=october. Ad click IDs added automatically by ad platforms are recorded without any set-up: gclid, gbraid and wbraid (Google), msclkid (Microsoft), fbclid (Meta), ttclid (TikTok), li_fat_id (LinkedIn), twclid (X), epik (Pinterest), rdt_cid (Reddit) and sccid (Snapchat).

What Is Recorded

  • Latest touch (the visit that led to the form): channel, source, medium, campaign, term, content, ad click ID, landing page and referrer.
  • First touch: channel, source, medium, campaign, landing page, referrer and the date of the first visit.
  • Journey: the number of visits before converting and the days between the first visit and the form.
  • Click IDs for ad platforms: separate columns for the Google, Meta and Microsoft click IDs, ready for offline conversion uploads.

A visit counts as a new touch when it carries UTM tags, an ad click ID or a referrer from another site. Direct return visits, internal pages and ignored referrers keep the previous touch, so the source is not lost when someone comes back by typing your address.

How Channels Are Decided

  • Paid Search: medium cpc, ppc, paid or sem, or a Google or Microsoft ad click ID.
  • Paid Social: medium paid_social, cpc on a social source, or a TikTok, LinkedIn, X, Pinterest, Reddit or Snapchat click ID.
  • Organic Search: a referrer from Google, Bing, Yahoo, DuckDuckGo, Ecosia, Brave, Yandex, Baidu and other search engines.
  • Organic Social: a referrer from Facebook, Instagram, LinkedIn, X, YouTube, Reddit, Pinterest, TikTok and other networks, or medium social.
  • AI Assistant: a visit from ChatGPT, Perplexity, Gemini, Copilot, Claude, DeepSeek and similar assistants, by referrer or utm_source.
  • Email, Affiliate, Display and SMS: by medium (email or newsletter, affiliate, display or banner, sms).
  • Referral: any other site that links to you. Other Campaign: tagged links with a medium that fits none of the above. Direct: no tags and no referrer.

Where the Data Appears

Entry screen

Every new entry has a Lead source box in the sidebar with the latest and the first touch, the click ID, the links to the landing page and referrer, the number of visits and the days to convert.

Lead source box on a Gravity Forms entry: latest touch channel AI Assistant from chatgpt.com, first touch Paid Search from google cpc with campaign spring-sale and the gclid, 2 visits and 0 days to convert
The Lead source box on the entry screen.

Entries list, filters, exports and feeds

Each value is an entry column named Lead source: Channel, Lead source: Campaign and so on. Add them to the entries list with the column selector, filter entries by channel or campaign, include them in exports, and map them in the field maps of your CRM, email marketing and spreadsheet feeds.

Merge tags

Use {lead_source} in a notification for a short summary table, or single values such as {lead_source:channel}, {lead_source:campaign}, {lead_source:first_source}, {lead_source:gclid} or {lead_source:days}. They are listed in the merge tag drop-down under Lead source.

Hidden fields

Select a Hidden or Single Line Text field, open its Advanced tab and choose a value under Fill with lead source. When the form is sent, the field receives that value. Use this for services that only read form fields.

Lead Sources report

Go to Forms → Lead Sources. Choose a form or all forms, a period and how to group the leads: channel (latest or first touch), source / medium, campaign or landing page. The report shows the number of leads and the share of each value, and Download CSV saves the same table.

Lead Sources report for the last 30 days grouped by channel: 53 leads, led by Paid Search, Organic Search, Email, Direct and AI Assistant, with the number of leads, the share and a bar for each
Forms → Lead Sources: leads per channel for the chosen period.

Privacy

  • The add-on uses one first-party cookie named gfx_ls and no third-party service. No IP address is stored.
  • Query values that can hold personal data, such as email, phone, token or key parameters, are removed from landing page and referrer URLs before they are saved.
  • Mention the cookie in your privacy and cookie policy, and use a consent mode if your visitors need to opt in first.

Limits and What Is Not Included in v1.0

  • Entries created before the add-on was active, imported entries and entries added in the admin have no source.
  • A visitor who uses several devices or clears cookies starts again as a new visitor.
  • The source is recorded on the entry; it is not sent to ad platforms. Use the GravityExtra server-side conversion add-on or your CRM to send conversions back.
  • Without an active license, nothing is recorded and forms behave as normal Gravity Forms forms.

Troubleshooting & FAQ

Every entry says Direct.

Check that the tracking script loads on the landing pages (choose On every page), that your links carry UTM tags, and that a consent mode is not waiting for consent that is never given.

Visits from my payment page show as Referral.

Add the payment domain to Ignore these referrers. Visitors coming back from it then keep their earlier source.

Does it work with page caching?

Yes. The script reads the tags in the browser and adds them to the form, so cached pages work. Without JavaScript the tags of the form page are still read when the form is sent.

How do I send the source to my CRM?

Map the Lead source columns in the feed settings of your CRM add-on, or fill a hidden field and map that field.

What happens when I uninstall the add-on?

Forms → Settings → Uninstall removes the add-on settings. Recorded sources stay with the entries and the hidden field settings stay in your forms.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr