How to Capture Meta Ads Data in Ninja Forms

Keep original Facebook and Instagram campaign details with your Ninja Forms leads, then compare campaigns and creatives with lead quality and customer outcomes.
Attribution is broken

Facebook and Instagram campaigns can generate plenty of enquiries, but understanding their value means knowing which campaigns, ad sets and creatives bring in leads that become opportunities and customers.

Madlitics captures the campaign details supplied in your Meta ad URLs and preserves the original attribution as someone browses your website. When they submit your Ninja Form, those details appear alongside their answers, together with the original channel and landing page.

Pass the fields through your existing Ninja Forms connection to keep that context with the CRM record. Your team can then compare Meta campaigns with lead quality, pipeline and customer outcomes using the reports they already work with.

Why Meta Ads Campaign Performance Matters

Clicks and website visits show how efficiently your Meta campaigns attract traffic. Connecting that traffic with leads and customers shows what happens after the click. The example below compares the same campaigns using traffic metrics and then customer outcomes.
‍

Meta Ads Campaign Performance Based on Traffic Metrics

Campaign

Ad Spend

Visitors

Cost per Visitor

Meta Ads, Lead Gen

$4,800

5,200

$0.92

Meta Ads, Retargeting

$2,600

2,100

$1.24

Meta Ads, Awareness

$3,900

8,900

$0.44

Campaign
Meta Ads, Lead Generation

Ad Spend
$4,800

Visitors
5,200

Cost per Visitor
$0.92

Campaign
Meta Ads, Retargeting Campaign

Ad Spend
$2,600

Visitors
2,100

Cost per Visitor
$1.24

Campaign
Meta Ads, Awareness Campaign

Ad Spend
$3,900

Visitors
8,900

Cost per Visitor
$0.44


Awareness generates the most visits at the lowest cost per visitor. Retargeting attracts fewer visits at a higher cost, making it appear less efficient on traffic metrics alone.
‍

Meta Ads Campaign Performance Connected to Leads, Customers, and Revenue

Campaign

Ad Spend

Visitors

Leads

Customers

Revenue

Meta Ads, Lead Gen

$4,800

5,200

148

9

$38,000

Meta Ads, Retargeting

$2,600

2,100

121

17

$126,000

Meta Ads, Awareness

$3,900

8,900

201

3

$11,000

Campaign
Meta Ads, Lead Generation

Ad Spend
$4,800

Visitors
5,200

Leads
148

Customers
9

Revenue
$38,000

Campaign
Meta Ads, Retargeting Campaign

Ad Spend
$2,600

Visitors
2,100

Leads
121

Customers
17

Revenue
$126,000

Campaign
Meta Ads, Awareness Campaign

Ad Spend
$3,900

Visitors
8,900

Leads
201

Customers
3

Revenue
$11,000


Customer outcomes change the comparison. Retargeting produces 17 customers from 121 leads, while Awareness produces three from 201. Their lead-to-customer conversion rates are approximately 14.0% and 1.5%. Ad spend per customer is approximately $153 for Retargeting versus $1,300 for Awareness. These figures cover advertising spend rather than the full cost of acquiring a customer.

Keeping campaign attribution with lead records makes this comparison possible when those fields are connected with customer, spend and revenue data in your reports. See how to use Ninja Forms marketing attribution to compare original lead sources with qualification, pipeline and customer outcomes.

Set up Meta Ads tracking in Ninja Forms

Capture original campaign details with each lead and keep that context in your connected tools.

1.

Install Madlitics on your WordPress site

Install Madlitics on your WordPress website to capture first-touch attribution when someone arrives and preserve it as they browse. This keeps the original marketing source available when they reach your Ninja Form.

Install Madlitics on WordPress
Install Madlitics
Add UTM parameters
2.

Add UTM parameters to Meta Ads

Add UTMs to the website URLs used in your Facebook and Instagram ads. Supply consistent, readable values for the source, campaign, ad set and creative you want recorded with each lead.

For example, a Facebook campaign URL could look like this: https://www.yoursite.com/demo?utm_source=facebook&utm_medium=paid_social&utm_campaign=demo_q1&utm_term=marketing_teams&utm_content=video_ad_1

Here, marketing_teams identifies the ad set and video_ad_1 identifies the creative.

Madlitics field value pairs
3.

Configure Ninja Forms to receive attribution

Add the seven default Madlitics hidden fields to your Ninja Form. These receive the original channel, four campaign segments, landing page URL and landing page group without adding anything for the lead to complete.

To capture an available FBCLID, add its corresponding field using the Madlitics field reference.

Set up Ninja Forms for Meta Ads
Receive enriched submission data
Connect to reporting
4.

Capture campaign attribution with every submission

When someone submits your Ninja Form, Madlitics writes their stored first-touch attribution into the configured fields. The original campaign details and landing page appear alongside their contact information, even after they browse beyond the page where they arrived.

Pass those fields through your existing Ninja Forms connection to keep campaign context with the CRM record. You can then compare campaigns, ad sets and creatives with lead quality, opportunities and customers in your existing reports.

Meta Ads attribution captured in Ninja Forms

Keep original campaign details and landing page data alongside each lead’s answers, ready to pass through your existing connections.
Field
What it captures
channel
The original marketing channel, such as Paid Social.
segment1
The original source value supplied in utm_source.
segment2
The original campaign value supplied in utm_campaign.
segment3
The value supplied in utm_term, such as an ad set label.
segment4
The value supplied in utm_content, such as a creative variation.
lp
The original landing page URL.
lpg
The original landing page group.
Click IDs
Optional advertising click identifiers, captured when available and configured with additional fields.

* Values reflect the campaign tags and source information available on the first visit. Click IDs require additional fields beyond the seven defaults.

Visualizing your marketing impact

Compare captured Meta campaign attribution with lead quality and customer outcomes in your existing reports.

Stacked bar chart showing lead generation by marketing channel over time, comparing sources like Paid Search, Paid Social, Organic Search, Direct, and Email. Helps visualize which channels drive the most traffic.

Leads by channel
Compare leads first attributed to Paid Social with other channels, using captured source values to distinguish Facebook and Instagram where supplied.

Line chart displaying lead-to-customer conversion rates by channel, comparing Google Ads, Facebook Ads, LinkedIn Ads, Organic Search, and Email. Shows how different sources drive qualified leads over time.

Conversion rate by channel
Use CRM outcomes to compare the proportion of leads from each original channel that become customers.

Line chart showing revenue performance by marketing campaign, comparing Google Ads, Facebook Ads, and LinkedIn Ads. Helps identify top-performing and underperforming campaigns.

Revenue by campaign
Combine captured Meta campaign values with connected customer and revenue records to compare campaign results.

Related articles

Get started with Meta Ads attribution in Ninja Forms

Madlitics keeps original Meta campaign details with your Ninja Forms leads as they browse and submit. Map those fields into your existing tools to compare campaigns, ad sets and creatives with the opportunities and customers they introduce. Start a free trial to capture attribution alongside your leads and bring that context into your CRM reporting.

Why use Madlitics with Ninja Forms to capture Meta Ads data

Keep Facebook and Instagram campaign context with your leads, from the original visit to your CRM records.

Capture campaign and creative details
Record the source, campaign, ad set and creative values supplied through your Meta campaign URLs.

Keep attribution with the submission
Store original marketing context alongside contact details and form answers, ready for your existing connections.

Compare campaigns with real outcomes
Use captured campaign fields alongside CRM stages and customer records to evaluate lead quality and pipeline.

Send attribution to your stack
Map Ninja Forms fields through your configured integrations so the original source stays with downstream lead records.

Preserve original attribution
Keep campaign details available as someone browses or returns later in the same browser, while the stored data remains available.
See the original landing page
Record where the lead first arrived and compare those entry pages with qualification and customer outcomes.
Start a Madlitics free trial

Frequently asked questions

Answers to common questions about Meta Ads tracking with Madlitics and Ninja Forms