Loading
Insert Meta Ads dynamic macros straight into your campaign URL. They stay as literal text instead of being percent-encoded, so Meta Ads can substitute them at click time.
Advantage+ Shopping campaigns can return an empty string for {{placement}} and {{site_source_name}}. Use a static utm_source such as "facebook" there.
Name macros resolve to the name at publish time, so renaming a campaign later does not change the tracked value.
Preview
| Macro | Returns |
|---|---|
| {{campaign.name}} | Campaign name. Name at publish time. |
| {{campaign.id}} | Campaign ID. Numeric campaign ID. |
| {{adset.name}} | Ad set name. Name at publish time. |
| {{adset.id}} | Ad set ID. Numeric ad set ID. |
| {{ad.name}} | Ad name. Name at publish time. |
| {{ad.id}} | Ad ID. Numeric ad ID. |
| {{site_source_name}} | Site source. fb, ig, msg or an. |
| {{placement}} | Placement. Where the ad was shown. |
Source: official Meta Ads documentation.