Facebook Ads (Meta) dynamic URL parameters: the full list for tracking

November 19, 2026 · Hoplytic team · 2 min read

Facebook Ads (Meta) fills in dynamic URL parameters on every click, so your tracker knows which campaign, ad group and ad it came from. Here is the full list we use, where it comes from, and how to set it up.

Short answer: Facebook Ads (Meta) adds its own click ID (fbclid) to every ad click by itself. For campaign and ad details, add dynamic URL parameters to the URL: {{campaign.id}} (campaign ID), {{adset.id}} (ad set ID), {{ad.id}} (ad ID), {{placement}} (placement).

Facebook Ads (Meta) dynamic URL parameters

Parameter on your linkFacebook Ads (Meta) macroFilled with
campaign{{campaign.id}}Campaign ID
adset{{adset.id}}Ad set ID
ad{{ad.id}}Ad ID
placement{{placement}}Placement

The parameter names on the left are your choice; the macros on the right must be copied exactly, brackets included.

The automatic click ID

Facebook Ads (Meta) appends fbclid to the landing URL on its own. You don't add a macro for it: your tracker reads it from the URL and stores it with the click. Keep it intact: link shorteners or redirects that drop query strings will lose it.

https://go.yoursite.com/vpn-offer?campaign={{campaign.id}}&adset={{adset.id}}&ad={{ad.id}}&placement={{placement}}

Facebook Ads (Meta) replaces each macro when someone clicks. Your tracker stores the values, creates its own click ID, and passes it to the affiliate network's sub-ID so the sale can be matched back to this exact ad.

Sending conversions back to Facebook Ads (Meta)

Facebook Ads (Meta) learns which clicks bought through the Conversions API with the fbclid.

Where this list comes from

Checked against Facebook Ads (Meta)'s own documentation () in November 2026. Platforms rename macros now and then: if a value arrives empty or literal, check Facebook Ads (Meta)'s current list.

On Hoplytic

Pick Facebook / Instagram (Meta) in the link maker and these dynamic URL parameters are added for you, and fbclid is stored automatically. Reports can then group by any of them, for example campaign → ad → country, with cost, profit and ROAS. See every ad platform's macros or the guide to sub-ID tracking.

Questions people ask

What is the Facebook Ads (Meta) click ID?

Facebook Ads (Meta) adds fbclid to the landing URL by itself. A tracker stores it with the click so the sale can be reported back to Facebook Ads (Meta) later.

Why does my tracker show {{campaign.id}} literally instead of a value?

The ad platform didn't fill it in. Usually the macro is misspelled, uses the wrong brackets, or the ad was created before the parameter was added. Copy the macro exactly as Facebook Ads (Meta) writes it and check a live click.

More in Traffic sources and macros

Also: tracking glossary · ad platform macros · Markdown copy