Facebook / Meta Ads · Tracking template

UTM IDs → Facebook / Meta Ads tracking template

ID-based Meta parameters for rename-safe reporting in GA4.

Use this recipe on Facebook / Meta Ads. Open it in the builder to merge, validate tokens, or combine with other tools.

Was this recipe useful? 4.4 (22)

Tap a star to rate (1–5). You can change your rating later.

Tracking template
utm_source={{site_source_name}}&utm_medium=paid&utm_campaign={{campaign.id}}&utm_content={{ad.id}}&utm_term={{adset.id}}&placement={{placement}}

How to install

  1. Open Meta Ads Manager → your ad → Tracking or the website URL field.
  2. Paste the parameter string onto the destination URL (Meta has no Google-style Tracking template field).
  3. Keep double curly braces like {{campaign.id}} intact — do not URL-encode the braces.
  4. Publish, then click the ad preview and confirm GA4 (or your analytics) receives the UTMs.

Why this stack

ID-based Meta parameters for rename-safe reporting in GA4.

This UTM IDs → Facebook / Meta Ads recipe is built for Facebook / Meta Ads with utm. Facebook / Meta Ads has no Google-style Tracking template field — bake macros into the ad’s URL parameters / website URL.

Common pitfalls

  • Wrong field ownership — redirects must own Tracking template; UTMs / tw_* / nbt= usually belong in Final URL suffix (Google / Microsoft).
  • Duplicate keys (two utm_source values) silently overwrite each other in analytics.
  • Leaving placeholders like account IDs or domain tokens unreplaced breaks the click path.

Before you go live

  • Replace placeholders such as account IDs, tracker IDs, and domains.
  • Click through once from the ad preview and confirm the landing URL.
  • Confirm analytics or call-tracking tools still receive the expected query parameters.
  • Cross-check macros in the Facebook / Meta Ads parameter guide.

Need a variation? Open this stack in the template builder to merge another tool or validate tokens.

FAQ

Where do I paste the UTM IDs → Facebook / Meta Ads template?

Paste into the ad’s URL parameters / website URL in Facebook / Meta Ads. There is no separate Tracking template field like Google Ads.

Will this break my landing page URL?

Templates that start with {lpurl} or include u={lpurl} / url={lpurl} preserve your final URL. On Meta/TikTok/LinkedIn, you append macros to the destination URL directly. Always click-test after saving.

Where are the Facebook / Meta Ads macros documented?