DMDigital MansoorAI SEO Consultant
Free tool · Runs in your browser

UTMLinkBuilderforGA4Campaigns

Enter a landing page URL with a source, medium and campaign name. The tool builds the tagged link as you type, cleans the values, and shows which GA4 channel the link is likely to land in.

FreeLive previewGA4 channel hint
Build link ↓

By Mansoor Bhanpurawala, SEO consultant, 14+ years in SEO.

InputURL, source, medium, campaign, and optional term, content and campaign IDFour examples load with one click: Google Ads, email newsletter, LinkedIn post and WhatsApp broadcast.
CleaningForce lowercase, replace spaces with underscoresBoth options are on when the page loads.
OutputTagged link, parameter table, length, channel hintThe hint approximates the default GA4 channel group and tells you to confirm it in GA4 Admin.
ExportCopy, .txt and a share linkThe result updates as you type.
01

What the cleaning options did to messy input

On 29 November 2026 I typed the kind of values people paste from a spreadsheet: Google Ads as the source, CPC as the medium, Oct Sale 2026 as the campaign and SEO Consultant as the term. With the page defaults, the link carried google_ads, cpc, oct_sale_2026 and seo_consultant. Every value was lowercased and every space became an underscore, so the same source is always spelled the same way.

The Google Ads example, with all five parameters filled, produced a link of 139 characters.

02

A link with a query string and an anchor stays intact

I entered a URL that already had ?ref=1 and #top. The tool kept ref=1, added the three UTM parameters after it, and left the #top anchor at the very end of the link.

So you can tag a link you copied from the browser without trimming it first.

03

Ampersands and percent signs get encoded

I tried a campaign called 50% off & more, a term of seo consultant & tools and a content value of a+b. The link came out with 50%25_off_%26_more, seo_consultant_%26_tools and a%2Bb. The percent sign, the ampersand and the plus sign were all encoded, so the link does not break.

I would still keep campaign names plain. A name that needs encoding is harder to read when you check it later.

04

Every paid medium lands in Paid Search, even from a social source

The result carries a hint that says Paid Search if the source is a search engine, or Paid Social if the source is a social network. In my runs the tool never showed Paid Social. Facebook, Instagram and LinkedIn with the medium cpc all came back as Paid Search. So did Facebook with paid_social and with ppc.

Google's channel group help page says manually tagged Paid Social needs a source from a list of social sites and a medium matching a paid pattern, which includes cpc, ppc and anything starting with paid. By that rule, Facebook with cpc belongs in Paid Social.

The other mappings looked right: newsletter with email gave Email, google with organic gave Organic Search, whatsapp with referral gave Referral, linkedin with social gave Organic Social, and an unknown pair like foo and bar gave Unassigned. Use the hint for those, and ignore it for paid social links.

05

A URL without https gives you nothing

I typed example.com/page with no https. No link appeared and no message explained why. The field hint does say to include https, but the tool does not warn you when you forget. If the result box looks empty, check the start of the URL.

07

Questions about tagged links

Does it lowercase my UTM values?

Yes, by default. In my run, Google Ads, CPC and Oct Sale 2026 came out as google_ads, cpc and oct_sale_2026. The page also has an option to switch lowercasing off.

Does it keep the query string and anchor on my link?

Yes. A URL with ?ref=1 and #top kept both. The UTM parameters were added after ref=1 and the anchor stayed at the end.

Can I trust the GA4 channel hint?

For most pairs, yes, but not for paid social. Facebook, Instagram and LinkedIn with cpc all showed Paid Search, while Google's help page puts them in Paid Social. Confirm paid social links in GA4 itself.

What happens with special characters in a campaign name?

They are percent encoded in the link. 50% off & more became 50%25_off_%26_more. Plain names are easier to read in reports.

Why is my result empty?

Most likely the URL has no https at the start. In my test the tool showed no link and no error. Add https and the link appears.

Done for you

Want this done for your site?

Send your URL on WhatsApp and I will tell you what to fix first.

Message me on WhatsApp

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *