How to Capture Meta Ads Data in Ninja Forms


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.
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
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
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.
Capture original campaign details with each lead and keep that context in your connected tools.
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.


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.
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.


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.
channelsegment1utm_source.segment2utm_campaign.segment3utm_term, such as an ad set label.segment4utm_content, such as a creative variation.lplpgClick IDsCompare captured Meta campaign attribution with lead quality and customer outcomes in your existing reports.
Leads by channel
Compare leads first attributed to Paid Social with other channels, using captured source values to distinguish Facebook and Instagram where supplied.
Conversion rate by channel
Use CRM outcomes to compare the proportion of leads from each original channel that become customers.
Revenue by campaign
Combine captured Meta campaign values with connected customer and revenue records to compare campaign results.
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.
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.
Answers to common questions about Meta Ads tracking with Madlitics and Ninja Forms