Skip to content

Track YouTube Ads Leads in Ninja Forms

YouTube can bring a steady stream of visitors to your WordPress site, but a form submission alone does not tell you which ad, campaign, or landing page produced the lead. This guide shows how to connect YouTube Ads to Ninja Forms so each submission carries the attribution details you need for reporting.

What you are building

You will add UTM parameters to the URLs behind your YouTube Ads, create six hidden fields in your Ninja Forms lead-capture forms, and let an attribution tool write the ad and landing-page data into those fields when a visitor submits. The result is a form entry that contains both the visitor's own details and the marketing context that brought them in.

This setup is useful when your leads are generated on a website form but converted into customers offline, by phone, email, or video call. In that situation, a form submission is the handoff point where ad data must be captured before the lead moves into your CRM.

Step 1: Add UTM parameters to your YouTube Ads

UTM parameters are short text tags appended to the destination URL. They tell your form and analytics tools which ad, campaign, and source sent the visitor. A plain destination URL such as https://roipaths.com/integrations/ninja-forms becomes something like https://roipaths.com/integrations/ninja-forms?utm_medium=paidsocial&utm_source=youtube&utm_campaign=brand-campaign once tags are added.

The exact values are yours to choose, but a consistent convention makes reporting easier. A practical starting convention for YouTube Ads is:

  • UTM Medium = paidsocial
  • UTM Source = youtube
  • UTM Campaign = the campaign name
  • UTM Term = the ad name

Use the same spelling and casing across every ad in a campaign. If one ad uses YouTube and another uses youtube, your reports will split them into separate rows.

Step 2: Add hidden fields to your Ninja Forms

Open the form that visitors use to request a quote, contact you, or book an appointment. From the right-hand field menu, drag the Hidden field type into the form once for each of the following names:

  • Channel
  • Channel Drilldown 1
  • Channel Drilldown 2
  • Channel Drilldown 3
  • Landing Page
  • Landing Page Group

These field names are the contract between the form and the attribution tool. Keep them exactly as written so the data lands in the right place. For a walkthrough of the Ninja Forms interface, see the linked help article on adding hidden fields.

Step 3: Let the attribution tool fill the hidden fields

Once the hidden fields exist, the attribution tool tracks where visitors come from and writes that information into the fields at submission time. It also keeps the UTM parameters in the visitor's browser, so a visitor who wanders to another page, or leaves and comes back days later, still submits the form with the original ad data attached.

Here is how the fields map to the data:

  • Channel receives the broad source category, such as Paid social.
  • Channel Drilldown 1 receives the source, such as youtube.
  • Channel Drilldown 2 receives the campaign name.
  • Channel Drilldown 3 receives the ad name.
  • Landing Page receives the first landing page the visitor saw.
  • Landing Page Group receives the group that landing page belongs to, such as services.

A worked illustration: a dental clinic in Sydney runs a YouTube ad for teeth whitening. The ad points to a form on the clinic's site. When a visitor submits the form, the hidden fields might read Channel = Paid social, Channel Drilldown 1 = youtube, Channel Drilldown 2 = book appointment campaign, Channel Drilldown 3 = teeth whitening ad. The Landing Page field would hold the first page the visitor landed on, and Landing Page Group would hold its group.

Step 4: Review and route the data

When a visitor submits the form, Ninja Forms stores the personal details the visitor entered, such as name and email, alongside the attribution data in the hidden fields. You can then:

  • Review submissions under Ninja Forms > Submissions in the WordPress admin.
  • Include the attribution fields in the new-lead notification email so the context arrives in your inbox.
  • Send the submission to your CRM, such as Salesforce, Pipedrive, or HubSpot, and build reports there.

Sending the data to a CRM is what makes customer and revenue reporting possible. Form entries show leads; the CRM shows what happened after the lead became a customer.

Why form-level tracking matters

Three separate gaps make form-level capture worth the effort.

First, ad-platform conversion counts are a moving target. Tightened privacy rules, including the iOS 14 changes, limit how much signal Google can collect, so a click that ends in a form fill may never register as a conversion in your Google Ads account. The account total can undercount or misattribute what actually happened.

Second, web analytics stops at the site edge. Google Analytics can tell you how many people visited and what they did on the page, but it has no view of the phone call, proposal, or invoice that turns a lead into a paying customer. For businesses that close deals offline, that leaves the most important part of the funnel unmeasured.

Third, proving ROI requires revenue, not traffic. To judge whether YouTube Ads are worth the spend, you need to connect each lead to the customers and revenue it eventually produced. That link is easiest to build by capturing the ad data in the form, passing it to the CRM, and reporting from there.

Three reports worth building

Once the data reaches your CRM, start with three views.

  1. Leads by channel. Because the hidden fields capture every source, not only YouTube, you can count new leads per channel each month and see how YouTube's volume stacks up against organic search, organic social, paid search, and the rest. That comparison is the starting point for shifting budget.
  2. Customers by campaign. Group closed customers by the YouTube campaign they first interacted with. The count per campaign shows which ones turn form fills into paying accounts, and which ones only generate interest.
  3. Revenue by ad. Group revenue by the specific ad that brought the lead in. Ads that produce little revenue are candidates to pause; ads that produce the most are candidates for more budget.

These reports work best when the UTM convention from Step 1 is followed consistently. A campaign name that changes mid-flight will fragment the report.

Setup checklist

Before you consider the setup complete, confirm each item:

  • Every YouTube Ad destination URL carries utm_medium, utm_source, utm_campaign, and utm_term.
  • The UTM values follow one naming convention across all ads in a campaign.
  • Each lead-capture form contains all six hidden fields with exact names.
  • A test submission shows the expected values in Channel, the three Channel Drilldown fields, Landing Page, and Landing Page Group.
  • The CRM receives the hidden-field values and maps them to the correct properties.
  • At least one report groups leads or customers by channel, campaign, or ad.

Frequently asked questions

Do I need to change my Ninja Forms field names?

The six hidden fields should be named Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3, Landing Page, and Landing Page Group. The attribution tool writes to those names, so renaming them will break the connection.

What happens if a visitor leaves the site and comes back later?

The attribution tool stores the UTM parameters in the visitor's browser. When the visitor returns and submits a form, the stored parameters are still available to fill the hidden fields.

Why do Google Ads and my form submissions show different conversion numbers?

Google Ads relies on its own tracking signals, which privacy changes have made less reliable. A form submission recorded by Ninja Forms reflects what happened on your site. The two numbers can diverge, which is one reason to capture attribution in the form and report from the CRM.

Can I track channels other than YouTube Ads?

Yes. The same hidden-field setup captures other sources, including organic search, organic social, and paid search, so you can compare YouTube against other channels in one report.