Add tracking parameters to Meta Ads
Step-by-step guide to adding LeadJourney's lj_ tracking parameters to your Meta (Facebook & Instagram) Ads campaigns, so every click is attributed to the right campaign, ad set and ad.
This guide shows you how to add LeadJourney's tracking parameters to your Meta Ads
campaigns (Facebook & Instagram). Once they're in place, Meta appends a small lj_* string to
every click, and LeadJourney attributes each visit and lead to the exact campaign, ad set and ad
that drove it.
Before you start
- Your tracking script must be live on your landing pages – see Install the tracking script.
- Meta Ads must be connected as a traffic channel – see Connect Meta Ads.
- Copy your exact string from LeadJourney under Settings → Traffic Channels → Connect
Meta Ads → Step 4. Always use the one LeadJourney shows you – the
lj_channelvalue has to match your workspace.
The parameter string
In Meta Ads Manager you'll paste this lj_* string (copied from the LeadJourney dialog):
lj_channel=meta_ads&lj_c_id={{campaign.id}}&lj_as_id={{adset.id}}&lj_ad_id={{ad.id}}&lj_placement={{placement}}Each slot maps to one of Meta's dynamic parameters, which Meta fills in automatically on every click:
| Parameter | What it captures | Meta macro |
|---|---|---|
lj_channel | The channel (always meta_ads) | fixed value |
lj_c_id | Campaign | {{campaign.id}} |
lj_as_id | Ad set | {{adset.id}} |
lj_ad_id | Ad / creative | {{ad.id}} |
lj_placement | Placement (Feed, Stories…) | {{placement}} |
Add it in Meta Ads Manager
Open the Tracking section
In Meta Ads Manager, edit the campaign or ad you want to track. The URL parameters field sits in the Tracking section at the bottom of the ad setup (you can set it at the campaign or ad level).
Paste the URL parameters
Paste the lj_* string exactly into the URL parameters field – without a leading ?.
Meta validates the field and shows a preview of the final URL.
Paste it exactly
Don't edit the {{campaign.id}}, {{adset.id}}, {{ad.id}} or {{placement}} macros. A typo
means Meta sends an empty value and the click files under Unknown.
Publish and repeat
Publish the ad. Repeat for every ad you want tracked – or use Meta's bulk editing to apply the same string across many ads at once.
Verify it's working
Click one of your live ads yourself and look at the address bar on the landing page – you should
see the lj_* parameters appended with the IDs filled in (e.g. lj_c_id=120…). Within a few
minutes the visit appears in Reports under Meta Ads, broken down by campaign and ad.
FAQ
Related articles
Connect Meta Ads
Connect Meta (Facebook) Ads as a traffic channel, map your pixels via the Conversions API and tag your campaigns so LeadJourney attributes every lead.
Connect LinkedIn Ads
Connect LinkedIn Ads as a traffic channel, pick the ad accounts you want to track and tag your campaigns so LeadJourney attributes every lead.