UTM parameters for ads. Tag once, read every ad.

Every ad platform can stamp its links with the campaign, ad set and ad that sent each click. Few stores use it consistently, so analytics shows a lump called "paid social" and nobody can say which ad brought the subscribers who bought. This guide sets out the naming convention analysts recommend, the exact macros each platform fills in, what Apple's privacy features remove, and how the same tags let a popup greet each ad's visitors with its own message and report results per ad.

By the numbers

  • 5.84%conversion for signup popups using UTM targeting, against 4.51% without itWisepops popup statistics 2026
  • 5.19%conversion for signup popups targeted by traffic source, against 4.82% withoutWisepops popup statistics 2026
  • 51.96%of US mobile web traffic came from iOS in October 2026, where Link Tracking Protection runsStatCounter Global Stats
  • 4.98%conversion for signup popups on mobile, against 3.67% on desktopWisepops popup statistics 2026

Wisepops compares campaigns that used a setting with campaigns that did not, across many stores; these are not controlled tests. StatCounter counts page views, not people.

What UTM parameters do

UTM parameters are five tags added to a link: utm_source (who sent the click, such as facebook), utm_medium (what kind of traffic, such as paid_social or email), utm_campaign, utm_content (which ad or link) and utm_term (the keyword). Analytics tools, Shopify and Klaviyo read them from the landing URL and file the visit under them. Ad platforms also add a click id of their own, such as fbclid or gclid, which feeds the platform's conversion reporting. The click id says which platform sent the visitor; only tags say which campaign and ad, in a form every other tool can read.

A naming convention that holds up

Decide the values once and write them down. Use lowercase everywhere, because tools that group by the raw value count Facebook and facebook as two sources. Use underscores, not spaces. Keep source to the platform (facebook, instagram, google, tiktok, pinterest, snapchat, bing, klaviyo) and medium to the kind of traffic (paid_social, cpc, email, sms, affiliate, referral). Put the campaign in utm_campaign and the ad in utm_content. Never tag internal links on your own site: a fresh utm_source mid-visit overwrites where the visitor really came from.

Source and medium values GA4 understands

GA4 sorts visits into channels by fixed rules that cannot be edited, and they are not case-sensitive. Paid Social needs a source on Google's list of social sites and a medium matching cp, ppc, retargeting or anything starting with paid, which is why paid_social works. Paid Search needs a search-engine source with the same medium rule, so cpc for Google and Bing. Email needs email as the source or medium, SMS needs exactly sms, and Affiliates needs affiliate as the medium. Anything else lands in Unassigned, which is where most hand-made tags end up.

Meta: Facebook and Instagram

Meta fills dynamic parameters at click time: {{site_source_name}}, {{campaign.name}}, {{campaign.id}}, {{adset.name}}, {{adset.id}}, {{ad.name}}, {{ad.id}} and {{placement}}. Set them in Ads Manager on each ad, with Build a URL parameter under the website URL or the URL parameters field under Tracking. A sound template is utm_source={{site_source_name}}, utm_medium=paid_social, utm_campaign={{campaign.name}}, utm_content={{ad.name}}, with the ad id in a parameter of its own. {{site_source_name}} becomes fb, ig, msg or an, so Instagram and Facebook clicks stay apart. Name macros carry the name the ad was published with, so a renamed campaign keeps reporting its old name; ids never change.

Google Ads: auto-tagging plus a suffix

Keep auto-tagging on: the gclid it adds drives Google Ads conversions and the GA4 link. Add UTM tags in the account's Final URL suffix (Admin, Account settings, Tracking template), which is appended to every final URL. ValueTrack gives ids, not names: {campaignid}, {adgroupid}, {creative} for the ad and {keyword}. So utm_source=google, utm_medium=cpc, utm_campaign={campaignid}, utm_content={creative}, utm_term={keyword}. There is no campaign-name macro, and {keyword} is blank for Performance Max, AI Max and Dynamic Search Ads. By default GA4 prefers the gclid data for Google Ads clicks, so the two do not fight.

TikTok

TikTok's macros are upper case with two underscores on each side: __CAMPAIGN_NAME__, __CAMPAIGN_ID__, __AID_NAME__ and __AID__ for the ad group, __CID_NAME__ and __CID__ for the creative, and __PLACEMENT__. Set them on the ad, under the website URL, with Build URL parameters, and check them with Preview. __CID__ is the creative id; a true ad-id macro, __ADID_V2__, works only in upgraded Smart+ campaigns. A good template is utm_source=tiktok, utm_medium=paid_social, utm_campaign=__CAMPAIGN_NAME__, utm_content=__CID_NAME__. TikTok can also attach its own UTM tags automatically; decide which you use so the values stay consistent.

Pinterest, Snapchat and Microsoft

Pinterest fills {campaign_name}, {campaignid}, {adgroupid}, {adgroupname} and {adid} in the destination URL, only on live ads, not in previews. Snapchat's macros are case-sensitive: {{campaign.name}}, {{campaign.id}}, {{adSet.name}}, {{adSet.id}}, {{ad.id}} and {{creative.name}}, set per ad in the URL macros builder; Snapchat's Auto-UTMs add only the tags you leave out. Microsoft Advertising mirrors Google: keep click-id auto-tagging on and put the tags in the account's Final URL suffix with {CampaignId}, {AdGroupId}, {AdId} and {keyword}. A suffix set on a campaign, ad group or ad replaces the account one rather than adding to it.

Email and SMS

Turn on UTM tracking in your email tool so every link is tagged without thinking about it. In Klaviyo it lives under Settings, Other, UTM tracking. Since June 2, 2025 Klaviyo's default utm_medium is Message type, which writes email in emails and sms in texts, exactly the values GA4's Email and SMS channels expect. Set utm_source to klaviyo and utm_campaign to the campaign or flow name. Tagged email traffic matters for popups too: a subscriber clicking through from your own email should not be asked to sign up again.

Apple's Link Tracking Protection

Apple announced Link Tracking Protection on June 5, 2023: it removes tracking information from links shared in Messages and Mail and from links in Safari Private Browsing. Measurement vendors that tested it, Fathom among them, found click ids such as gclid and msclkid removed and UTM tags left alone. iOS carried 51.96% of US mobile web traffic in October 2026, per StatCounter, so a strategy built on click ids alone loses data on a large share of phones. Put the ad id in a plain parameter of your own as well as the click id, and it survives.

Ad ids beside the UTM tags

UTM tags were designed for names, and names drift: a campaign gets renamed, two ads share a name, a typo splits a report. Analysts add the platform's ids in separate parameters so every visit ties back to exactly one ad. Veya reads its own: vy_ad for the ad id, vy_adset, vy_campaign, vy_placement and vy_platform, plus vy_partner for creators and podcasts. They sit next to the UTM tags in the same string and change nothing in GA4. Attribution tools work the same way, and Veya also reads several of their ad-id parameters.

Personalize the popup per ad

Once visits arrive tagged, a popup can speak to them. A visitor from an Instagram Reel about one product can see that product's headline and image; an email subscriber can see a members' note instead of a signup ask. Wisepops measured signup popups using UTM targeting at 5.84% against 4.51% without, and traffic-source targeting at 5.19% against 4.82%. Its broader custom-targeting comparison was much closer, 4.92% against 4.81%, so test your own split rather than assuming a lift. In Veya, each version of a popup's copy gets conditions such as Traffic channel is Instagram or Ad ID is one ad, while the design and offer stay the same.

Read the results per ad

Ad platforms report clicks and their own attributed purchases; they do not see what happened in your popup. With the same tags on the visit, each version of the popup gets its own funnel: views, steps reached, signups and the orders and revenue attributed to those signups. That answers questions the ad dashboard cannot, such as which ad brings subscribers who go on to buy. Compare versions over the same dates, and give a small ad enough traffic before you judge it.

Check your tags before the money goes out

Click through each new ad from the platform's preview and read the landing URL: every macro should be replaced by a real value, and a literal {{ad.id}} means the field was pasted in the wrong place. Confirm the visit shows under the right source and medium in GA4's real-time report. In Veya, the Tag your ads card on the Versions tab shows, per channel, how much of the last 30 days' traffic arrived tagged, and See what a visitor sees opens a private store preview as if you came from a given channel.

Questions

What UTM parameters should I use for Facebook ads?

Use utm_source={{site_source_name}}, utm_medium=paid_social, utm_campaign={{campaign.name}} and utm_content={{ad.name}} in each ad's URL parameters field, and add the ad id in a separate parameter. {{site_source_name}} tells Facebook, Instagram, Messenger and Audience Network clicks apart, and paid_social puts the visits in GA4's Paid Social channel.

Do I need UTM tags if Google Ads auto-tagging is on?

Keep auto-tagging on for Google Ads conversions and GA4, and add UTM tags in the Final URL suffix for every other tool: Shopify, Klaviyo, your popup app and any spreadsheet. GA4 uses the gclid data for Google Ads clicks by default, so the two do not conflict.

Should UTM values be lowercase?

Yes. GA4's channel rules ignore case, but many reports and tools group by the raw value, so Facebook and facebook become two rows. Pick lowercase values with underscores and use them everywhere.

Does iOS remove UTM parameters?

No. Apple's Link Tracking Protection removes tracking information such as click ids from links in Mail, Messages and Safari Private Browsing. Tests by measurement vendors found UTM tags left intact, which is why the ad id belongs in a parameter of its own.

Can a popup show different copy to each ad?

Yes, if the ad's link carries a tag that names it. Give each ad its id in the URL, then set the popup version's conditions to that ad, its campaign or its channel. Keep the offer the same across versions so results compare the message, not the discount.

Sources

Figures checked November 6, 2026.

Your next popup?
We’ll build it for you.

14-day free trial on every plan. Custom design and revisions included.