UTM Builder for Google Ads and Meta
Tag every ad once, not one by one. Pick Google Ads or Meta and paste your landing page. You get one line of tags that the platform fills in on each click with the campaign, ad group or ad set, ad, keyword, device and more. Paste it once and it works for every ad.
Free, no signup. Everything runs in your browser. Nothing you type is sent or saved.
Pawel Wilk, founder of PerfoAds and Google Ads specialist.
1. Pick the platform and paste your link
2. Choose the tags
Words in { } are filled in by Google on each click, so one line works for every ad.
The campaign ID
The ad group ID
Your keyword that matched the search (blank when there is no keyword, like Performance Max)
Keyword match type: e exact, p phrase, b broad, a AI Max or no keyword
Device: m mobile, t tablet, c computer
Where the click came from: g Google search, s search partners, d Display, ytv YouTube, x Performance Max
The ad ID
3. Paste this in Final URL suffix
Google Ads: Admin > Account settings > Tracking template > Final URL suffix (or the same field on a campaign, ad group or ad). Leave the tracking template empty unless a tracking tool asks for one.
utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_content={adgroupid}&utm_term={keyword}&matchtype={matchtype}&device={device}&network={network}
The full tagged link
Use this where there is no Final URL suffix field, or to test. If you use the line above, keep the plain link in the Final URL of the ad, so the tags are not in two places.
https://yourshop.com/collections/leather-belts?utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_content={adgroupid}&utm_term={keyword}&matchtype={matchtype}&device={device}&network={network}
What one click could look like
Made-up values, to show where each tag ends up.
https://yourshop.com/collections/leather-belts?utm_source=google&utm_medium=cpc&utm_campaign=21987654321&utm_content=163456789012&utm_term=belts&matchtype=p&device=m&network=g
Checks
- Keep auto-tagging on. When Google Analytics 4 gets both, it uses auto-tagging for Google Ads clicks. Your tags still show in other analytics tools.
How to use it
- Pick Google Ads or Meta.
- Paste the landing page link of your ad. The example link is filled in so you can see the result.
- Switch tags on or off. You can change plain values like google or cpc. Leave the tags in braces as they are.
- Google Ads: copy the line into the Final URL suffix. You can set it for the whole account, or for a campaign, ad group or ad. Meta: copy it into URL parameters under Tracking in each ad.
- Read the checks. Fix anything in red before you use the line.
Sources, checked on 22 Nov 2026: Add a Final URL suffix, Google Ads Help and Add URL parameters to your Meta ads, Meta Business Help.
What each tag means
The utm_ tags are what Google Analytics and most other analytics tools read.
| Tag | What it means |
|---|---|
| utm_source | Who sent the visit: google, fb, ig |
| utm_medium | The kind of traffic: cpc, paid_social, email |
| utm_campaign | The campaign |
| utm_term | The keyword (we use it for the ad set on Meta) |
| utm_content | Which ad or link was clicked |
| utm_id | The campaign ID |
Source: URL builders, Google Analytics Help, checked on 22 Nov 2026.
Google Ads dynamic tags (ValueTrack)
| Tag | What it means |
|---|---|
| {campaignid} | The campaign ID |
| {adgroupid} | The ad group ID |
| {creative} | The ad ID |
| {keyword} | Your keyword that matched the search (blank when there is no keyword, like Performance Max) |
| {matchtype} | Keyword match type: e exact, p phrase, b broad, a AI Max or no keyword |
| {device} | Device: m mobile, t tablet, c computer |
| {network} | Where the click came from: g Google search, s search partners, d Display, ytv YouTube, x Performance Max |
Source: Set up tracking with ValueTrack parameters, Google Ads Help, checked on 22 Nov 2026. Google gives the campaign ID, not its name.
Meta dynamic tags
| Tag | What it means |
|---|---|
| {{campaign.name}} | The campaign name (as it was when the ad first went live) |
| {{adset.name}} | The ad set name (as it was when the ad first went live) |
| {{ad.name}} | The ad name (as it was when the ad first went live) |
| {{campaign.id}} | The campaign ID |
| {{adset.id}} | The ad set ID |
| {{ad.id}} | The ad ID |
| {{placement}} | Where the ad showed, like facebook_feed or instagram_stories |
| {{site_source_name}} | The app: fb Facebook, ig Instagram, an Audience Network, msg Messenger, th Threads |
Source: Specifications for URL dynamic parameters, Meta Business Help, checked on 22 Nov 2026.
What the checks look for
- Tags already in the link. If your link has utm_source already, it is kept as you wrote it and ours is left out, so it isn't there twice. In Meta, a tag in URL parameters wins over the same tag in the Website URL.
- Capitals and spaces. Google Analytics treats Google and google as two values, so one source splits into two rows. Spaces break Google Ads links, so the tool writes them as %20. One click turns a value into lowercase with _.
- A # in the link. Tags have to go before the #, so the tool puts them there.
- Click IDs. gclid, fbclid and the like belong to one past click. They are left alone, with a tip to take them out of the ad link.
- The wrong platform's tags. A Meta tag on Google, or a Google tag on Meta, would show up as typed. The tool flags it.
In Google Ads, keep auto-tagging on. Google Analytics 4 uses auto-tagging over your utm_ tags for Google Ads clicks. On Meta, name tags keep the name the campaign, ad set or ad had when it first went live. Sources: About auto-tagging, Google Ads Help and Meta Business Help, checked on 22 Nov 2026.
A worked example
The example link is https://yourshop.com/collections/leather-belts with the Google Ads tags. The line to paste starts utm_source=google&utm_medium=cpc&utm_campaign={campaignid}. When someone clicks an ad on a phone, Google swaps {campaignid} for that campaign's ID and {device} for m. Your analytics then shows the visit under that campaign, without you tagging a single ad by hand.
Check your whole Google Ads account
PerfoAds checks your tracking, along with the rest of your account, and lists the most important problems first.
Start the audit: $149/mo per accountUp to 10 accounts, $149 each · Cancel anytime
Other free tools
Google Ads Character Counter
Count headlines, descriptions, sitelinks and callouts, and see a live ad preview.
Open toolSearch Terms Waste Finder
Paste a Google Ads search terms report and see which words spend money with zero conversions.
Open toolPerformance Max Asset Checker
Check a Performance Max asset group: text length, image shape and size, logos and videos, against Google specs.
Open toolGTIN Validator
Check GTIN, UPC, EAN and ISBN codes in bulk: check digits, lost zeros, repeats and restricted prefixes.
Open toolGoogle Product Category Finder
Type a product and get the matching Google product category with its ID and full path, or match a whole list of titles.
Open toolGoogle Shopping Feed Checker
Check a product feed against Google rules in your browser: what Google can refuse, what costs you clicks, and which products.
Open tool