Skip to content

UTM builder for GA4: tag one link or a whole CSV

Add campaign tags to the links you share on WhatsApp, Instagram, email or print, so Google Analytics 4 can tell which campaign brought each visit. Build one link with a QR code, or tag hundreds at once from a CSV where each row has its own source, medium and campaign. The builder keeps your link’s other parameters and #section, encodes Arabic values correctly, and shows which GA4 default channel each source and medium pair will be reported under, using the rules Google publishes.

Quick answer

Paste the page URL, pick a preset such as WhatsApp or Email newsletter or type the source and medium, and give the campaign a name. Copy the tagged link or download its QR code. For many links, switch to "Many links", paste URLs or a CSV with a url column, and download the result as a CSV.

Built in your browser

Based on Google Analytics Help: URL builders, collect campaign data with custom URLs · Page updated 23 October 2026

Editor: Abuzar, founder of NeedMyToolsHow we check facts

Quick presets (source and medium)

Where the visitor comes from. Use one fixed name per platform.

The kind of channel. GA4 assigns its channel mainly from this.

Your campaign or promotion name, spelled the same way everywhere.

Optional. Use the same ID as in any cost data you import.

Optional. The paid keyword.

Optional. Tells apart two links or ads in the same campaign.

Optional. The buying or management platform behind the traffic.

Two more parameters

Google’s help page says these two are not currently reported in Google Analytics properties.

Optional. Type of creative, such as display, native or video.

Optional. Targeting criteria, such as remarketing or prospecting.

Links are built in your browser; nothing is sent or saved.

Tagged link

Enter a page URL and at least the source to see the link.

  • Enter the page URL.

QR code of the tagged link

The QR code appears when the link is ready.

For colours, logos and other QR types, use the QR code generator.

How to use the UTM builder

  1. Paste the address of the page people should land on. If it already has UTM tags, load them to edit.
  2. Choose a preset or type utm_source and utm_medium, then name the campaign. Add content to tell two links apart.
  3. Check the GA4 channel line: if it says Unassigned, change the medium to one GA4 recognises.
  4. Copy the link or download the QR code. For a list, switch to "Many links", paste or open a CSV and download the tagged CSV.

What each UTM parameter is for

Google’s Analytics help page on URL builders lists the parameters GA4 reads: utm_source for the referrer, such as newsletter or google; utm_medium for the marketing medium, such as email or cpc; utm_campaign for the promotion; utm_id for a campaign ID that matches imported cost data; utm_term for a paid keyword; utm_content to tell apart creatives or two links in the same message; and utm_source_platform for the platform that bought or managed the traffic. It adds utm_creative_format and utm_marketing_tactic but notes that neither is currently reported in Analytics, so the builder keeps them in a folded section. Google’s advice is to always set source, medium and campaign together, and to set every relevant parameter once you set one, because missing ones appear as (not set) in reports. The builder marks a missing source as an error and a missing medium or campaign as a warning.

Naming rules that keep reports clean

GA4 treats parameter values as case-sensitive: Google’s own example is that utm_source=google and utm_source=Google are different, and its best-practice table warns that SpringSale and Spring_Sale become separate rows. It recommends lower case as a standard, one fixed source name per platform, one medium per channel, and campaign names that match the name in your ad platform exactly. The builder lowercases values by default, replaces spaces with underscores or hyphens if you choose, and strips invisible characters that hide in text copied from Arabic documents, such as right-to-left marks and zero-width spaces, which would otherwise create two campaigns that look identical in the report. Keep a short list of the sources and mediums your team uses and reuse it; the presets are a good starting point.

Which GA4 channel a link will land in

Visits from tagged links are grouped into default channels by rules Google publishes in its help page on the GA4 default channel group: a medium of email puts visits in Email, a medium matching cpc, ppc or paid puts them in a paid channel, social or sm in Organic Social, referral in Referral, sms in SMS, and so on, while some channels depend on whether the source is on Google’s lists of search, social, video and shopping sites. The builder applies those rules in the order Google lists them, with the source lists from Google’s downloadable spreadsheet, so a pair such as whatsapp with social shows Organic Social and instagram with paid_social shows Paid Social. A pair that matches no rule is reported as Unassigned, which is the most common reason campaign traffic seems to vanish. Google says these definitions may change, so treat the prediction as a check, not a guarantee.

Arabic campaign names and links that keep working

Arabic values are allowed. In the link they are written as UTF-8 percent-encoding, the standard every browser and analytics tool decodes, so رمضان becomes %D8%B1%D9%85%D8%B6%D8%A7%D9%86 in the address and appears in Arabic again in reports. The builder shows a readable copy next to the encoded one. Characters that would break a link, such as &, = and #, are encoded inside values; parameters already in your address, such as a product ID or language, are kept exactly as they were, and a #section stays at the end, after the query. If the address already carries old utm_ values they are replaced rather than repeated. Because Arabic letters take up to 6 characters each when encoded, long Arabic names make long links; for SMS and print, shorter Latin values are safer.

Bulk tagging from a CSV, and a safe export

For a whole campaign, paste a column of URLs to tag them all with the same values, or paste a CSV with a url column and columns such as utm_source, medium or campaign so each row carries its own values; empty cells take the values from the form. Commas, semicolons and tabs are recognised, as are UTF-16 files and Arabic headers. The download is a UTF-8 CSV with a byte order mark so Excel shows Arabic correctly, and any cell starting with =, +, - or @ gets a leading apostrophe so a spreadsheet cannot run it as a formula. Each row lists the original URL, the tagged and readable links, every parameter, the predicted GA4 channel and any problem found. To check a tagged link’s parts, use the URL encoder and decoder; for print, the single-link mode makes a QR code, and the QR code generator adds colours and logos.

Frequently asked questions

What is a UTM builder?

A UTM builder adds utm_source, utm_medium, utm_campaign and other tags to a link so Google Analytics can report which campaign, site or message each visit came from.

Which utm_medium should I use for WhatsApp links?

GA4 has no WhatsApp rule of its own, but whatsapp is on its list of social sources, so source whatsapp with medium social lands in Organic Social. Keep the same pair every time.

Are UTM values case-sensitive in GA4?

Yes. Google’s help page says google and Google are different values, so Email and email split into two rows. The builder lowercases values unless you turn that off.

Can I put Arabic words in UTM parameters?

Yes. They are percent-encoded in the link and decoded back to Arabic in reports. Remove hidden right-to-left marks, which the builder does for you, so names match.

Should I add UTM tags to links inside my own website?

No. Tags on internal links start a new campaign for a visitor already on your site and overwrite where they really came from. Use them only on links placed elsewhere.