№ 032Builder

UTM tags for Meta

Build the “URL parameters” string for Ads Manager and a full tagged link. Meta’s dynamic parameters fill in campaign, ad and placement names for you.

All tools

Instrument spec

Tags
5 UTM + 4 Meta
Meta macros
9
Checks
live
Sign-up
not needed
INLink parameters
One-click Meta presets

https:// is optional — we’ll add it

Where traffic comes from: {{site_source_name}} returns fb, ig, msg, an or th

Traffic type, e.g. paid_social or cpc

Campaign name or ID

Which ad or placement

For Meta, the ad set is a handy choice

Insert a macro into utm_campaign

Extra Meta parameters
OUTOutput

URL parameters

For Ads Manager: ad → Tracking → URL parameters field.

utm_source={{site_source_name}}&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_content={{ad.name}}&utm_term={{adset.name}}

Full link

The page URL with tags — for testing and other platforms.

Enter the page URL and the link will appear here.

Checks

  • No page URL yet. The parameter string doesn’t need one: Ads Manager takes the URL separately.
  • Name macros use the name at first publish: rename the campaign later and the tag keeps the old name.
  • No errors — ready to copy.
№ MReference

Meta dynamic parameters

Meta fills in the values at the moment the ad is served. The list follows Meta’s official Business Help Center.

MacroWhat it insertsPossible values
{{campaign.name}}Campaign name at first publish
{{adset.name}}Ad set name at first publish
{{ad.name}}Ad name at first publish
{{campaign.id}}Campaign ID
{{adset.id}}Ad set ID
{{ad.id}}Ad ID
{{placement}}The placement where the ad was shownfacebook_feed, facebook_instream, facebook_marketplace, facebook_right_column, instagram_feed, instagram_stories, messenger_inbox, messenger_sponsored_messages, threads_stream, audience_network_classic, audience_network_rewarded_video
{{site_source_name}}Platformfb · ig · msg · an · th
{{media_type}}Media type — Advantage+ catalog ads only
№ FCalculation protocol

How we calculate

No magic: tags are key=value pairs after the “?”, joined with “&”. Here’s how the instrument assembles them.

Since 2024 Meta may automatically add the source (Facebook or Instagram), the paid medium and campaign, ad set and ad IDs to your ad traffic.

Changing the URL parameters of a published ad may send the ad set back into the learning phase.

Dynamic parameters aren’t supported for collection ads in Instagram placements.

  1. F·01

    Parameter string

    utm_source={{site_source_name}}&utm_medium=paid_social

    Each tag is a key=value pair; pairs are joined with &. Order doesn’t matter.

  2. F·02

    Full link

    Link = URL + ? + parameters + #anchor

    If the URL already has parameters, we append the tags with & and replace any UTM tags with the same name. The anchor (#…) stays at the end.

  3. F·03

    Encoding

    space → %20 · {{macro}} → unchanged

    Plain text is URL-encoded, while macro braces stay as they are — otherwise Meta wouldn’t recognise them.

  4. F·04

    Where to paste

    Ad → Tracking → URL parameters

    As Meta’s help recommends. Parameters from this field are appended to the website URL; if keys clash, the URL parameters field wins.

№ →Next step

Numbers add up? Top up your ad account

We top up Meta ad accounts from $1,000 with no fees, at the official NBK rate. Credited within 24 hours.

  • 01from $1,000
  • 02no fees
  • 03at the official NBK rate
  • 04credited within 24 hours