UTM parameter builder for Meta and Google ads
Put IDs in your UTM tags, not names. Meta and Google fill in the campaign, ad set (or ad group) and ad IDs when someone clicks, so a click still points to one ad after any rename. Pick where the ad runs, check the warnings, and paste the string where the steps say.
Where the click came from
The kind of traffic
The campaign: its ID, so a rename changes nothing
Meta: the ad set · Google: the keyword or audience
Meta: the ad · Google: the ad group
Paste into Meta’s URL parameters
utm_source={{site_source_name}}&utm_medium=paid_social&utm_campaign={{campaign.id}}&utm_term={{adset.id}}&utm_content={{ad.id}}
The landing page as a click reaches it
https://yourstore.com/products/gold-ring?utm_source={{site_source_name}}&utm_medium=paid_social&utm_campaign={{campaign.id}}&utm_term={{adset.id}}&utm_content={{ad.id}}
- In Ads Manager, open the ad (or select several ads) and find Destination.
- Under Tracking, paste the URL parameters into URL parameters. Keep the website URL itself clean.
- Publish. Meta fills in the IDs when someone clicks.
Ready to paste: IDs in, nothing missing.
The two templates
Meta: URL parameters
utm_source={{site_source_name}}&utm_medium=paid_social&utm_campaign={{campaign.id}}&utm_term={{adset.id}}&utm_content={{ad.id}}
Google Ads: Final URL suffix
utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_term={targetid}&utm_content={adgroupid}
Questions
Why IDs instead of campaign names?
Names change. Rename a campaign and analytics shows a new one, with its history split in two; names also get cut short and pick up spaces and capitals. An ID stays the same for the life of the ad and matches it exactly in Ads Manager or Google Ads.
Do I still need UTM tags with the Meta Pixel and Google auto-tagging?
Yes. The pixel and Google’s click ID report sales back to Meta and Google; UTM tags tell your store, Shopify and analytics where every visit came from, in one naming scheme across every channel.
Where do the tags go?
In Meta, in each ad’s URL parameters under Tracking, never in the website URL itself. In Google Ads, in the Final URL suffix of the campaign or the whole account. The builder shows the steps for each.
What if my store’s redirect drops the tags?
Then every click arrives untagged, whatever you paste. The free store check at teraads.co/audit opens your homepage with test tags on and says whether a redirect strips them.