Dynamic URL Macro Tokens for Meta Ads
Supported ValueTrack and dynamic URL parameter tokens for automated attribution
| Macro Token | Recommended UTM Parameter | Dynamic Value Injected |
|---|---|---|
| {{campaign.name}} | utm_campaign | Automatically replaces with the active campaign name inside Meta Ads Manager. |
| {{adset.name}} | utm_term | Inserts the ad set (audience targeting) name into the URL. |
| {{ad.name}} | utm_content | Captures the individual ad creative or copy variant name. |
| {{placement}} | utm_content | Identifies where the ad appeared (e.g. Facebook_Desktop_Feed, Instagram_Stories). |
GA4 Channel Grouping Rules for Meta Ads
How Google Analytics 4 processes and reports your incoming campaign traffic
Regex Matching Criteria
GA4 matches recognized social sources (facebook, instagram) paired with utm_medium matching '^(paid-social|paidsocial|paid_social|cpc)$' into the Paid Social channel group.
Best Practice for Meta Ads
Use Meta Ads Manager's 'Build a URL Parameter' feature to dynamically inject {{campaign.name}} and {{ad.name}} directly into your destination links, eliminating manual spreadsheet errors.
Frequently Asked Questions: Meta Ads UTMs
Detailed answers regarding Facebook & Instagram Ads tracking, link configuration, and attribution
How do I add dynamic UTM parameters in Facebook Ads Manager?
In Meta Ads Manager at the Ad creation level, scroll to the 'Tracking' section, find 'URL Parameters', and click 'Build a URL Parameter'. Select Meta's dynamic placeholders like '{{campaign.name}}' for Campaign and '{{ad.name}}' for Content.
Should I use 'paid-social' or 'cpc' for Facebook Ads in GA4?
Both map to Paid Social in GA4 if the source is recognized as facebook or instagram. However, 'paid-social' or 'paid_social' is the modern standard recommended by Google Analytics 4 documentation to distinguish social ads from search CPC campaigns.
Why does Facebook rename or re-encode dynamic macros in the URL?
If you paste dynamic curly brackets directly into the Website URL field, Meta may URL-encode them. Always insert macros into the dedicated 'URL parameters' field in Meta Ads Manager so they are dynamically populated at auction time.
Other Marketing & Ad Platform UTM Builders
Switch to dedicated tracking generators for other advertising networks and channels