# UTM parameter builder for Meta and Google ads

> Build UTM tags for Meta and Google ads that survive a rename: campaign, ad set and ad IDs filled in on every click, checked for the mistakes that split your analytics. Free, with a link to share the setup.

**How do I tag Meta and Google ads so every sale traces back to one ad?** 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.

## Meta: URL parameters

`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.

## Google Ads: Final URL suffix

`utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_term={targetid}&utm_content={adgroupid}`

- In Google Ads, open the campaign’s settings (or Admin → Account settings for every campaign).
- Under Campaign URL options, paste the parameters into Final URL suffix.
- Keep auto-tagging on: the gclid and these tags work together.

## What the builder checks
- Start the landing page with https:// and your store’s address.
- Your landing page starts with http://. Use https://, or the redirect to https may drop the tags.
- Your landing page already had utm_ tags. They’re replaced by these: two sets on one address confuse analytics.
- Add utm_source, utm_medium, utm_campaign: analytics tools need utm_source, utm_medium and utm_campaign to name the traffic.
- This template has no ID in it, only names or fixed words. Renaming a campaign or ad then splits its numbers, and a name can’t be traced back to one ad. Put the IDs in, as the Meta and Google templates do.
- a value is Google’s syntax. Meta fills in values written with double braces, like the platform's own form.
- a value is Meta’s syntax. Google fills in values written with single braces, like the platform's own form.
- a value isn’t a value the ad platform fills in, so it would reach your store as written. Check the spelling.
- utm_source, utm_medium, utm_campaign has capital letters or spaces. Analytics counts “Facebook” and “facebook” as two sources: use lower case and underscores.

## 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.

Use the builder (free, no sign-up; the setup travels in the link): https://teraads.co/tools/utm-parameter-builder.

---
Source page: https://teraads.co/tools/utm-parameter-builder. Start free (no card): https://teraads.co/signup. MCP server for AI assistants: https://teraads.co/mcp.
