Table of Contents
Meta dynamic parameters fill campaign, ad set and ad details into tracking links. Use the supported tokens and test the published link to check that the values expand. A typo can leave the token itself in your reports.
How Meta Dynamic Parameters Work Under the Hood
When you insert a dynamic token such as {{campaign.name}} into the URL Parameters field, Meta stores the token template. When an ad impression is delivered and clicked, Meta's edge servers replace the placeholder with the actual string from Ads Manager before redirecting the browser to your landing page.
Syntax Rules: Double Braces and Lowercase Dots
Use the supported syntax for Meta dynamic parameters:
- Must use double curly braces:
{{...}}. Single braces (like Google ValueTrack) will fail and be passed as literal text. - Must use lowercase dot notation:
{{campaign.name}}, NOT{{campaign_name}}or{{CAMPAIGN.NAME}}. - No spaces inside the braces:
{{ ad.name }}is invalid.
Why Raw Tokens ({{campaign.name}}) Show in GA4
If you see literal strings like {{campaign.name}} or %7B%7Bcampaign.name%7D%7D in your GA4 campaign reports, one of three things happened:
- Preview Links Clicked: Someone clicked an ad preview inside Ads Manager or Facebook feed preview. Meta does not expand dynamic parameters in preview modes!
- Syntax Typos: Using underscores or incorrect capitalization (e.g.
{{Campaign.Name}}). - Boosted Posts / Page Posts: Boosting an existing organic post from your Facebook page using the simplified boost interface rather than full Ads Manager. The simplified interface does not support dynamic URL parameter expansion.
Copy-and-Paste Production Parameter Strings
utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_content={{ad.name}}&utm_term={{adset.name}}&utm_id={{campaign.id}}
For the broader setup, read Meta Ads UTM Tracking Guide: Dynamic Parameters, Attribution Discrepancies & Setup. Browse the Meta Ads Tracking guides to choose another troubleshooting task.
References
- Meta Dynamic URL Parameters Reference (Meta Business Help Center)