Integrations

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_channel value 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:

ParameterWhat it capturesMeta macro
lj_channelThe channel (always meta_ads)fixed value
lj_c_idCampaign{{campaign.id}}
lj_as_idAd set{{adset.id}}
lj_ad_idAd / creative{{ad.id}}
lj_placementPlacement (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

On this page