How to Add UTM Codes to Links for Email, Social and QR

How to Add UTM Codes to Links for Email, Social and QR

How to add UTM codes to links is the same job on every channel: take the landing page you already host, append utm_source, utm_medium, and utm_campaign, then paste that string into the send. FlashKit’s UTM code builder is the form. It is not a link shortener. Google Analytics 4 reads the keys after someone opens the URL.

Do this once per channel, not once per week with a new spelling. The table below is a ready-made source/medium list that matches GA4’s default channel group where Google documents a rule. Mediums with no rule (including offline) sit in Unassigned unless you add a custom group in the property.

Ready-made source and medium values

Channelutm_sourceutm_mediumDefault channel (if any)
NewsletternewsletteremailEmail
Instagram organicinstagramsocialOrganic Social
WhatsAppwhatsappsocialOrganic Social
Printed QRqr-menuofflineUnassigned
Paid searchgooglecpcPaid Search (when source looks like search)

Keep the campaign name identical across those rows when they are the same promotion. Split creatives with utm_content, not with a new campaign spelling.

One worked URL per channel

All five strings were produced with the browser URL API the builder uses, on https://www.example.com/offer, campaign spring-launch:

  • Email: https://www.example.com/offer?utm_source=newsletter&utm_medium=email&utm_campaign=spring-launch
  • Instagram: https://www.example.com/offer?utm_source=instagram&utm_medium=social&utm_campaign=spring-launch&utm_content=bio-link
  • WhatsApp: https://www.example.com/offer?utm_source=whatsapp&utm_medium=social&utm_campaign=spring-launch
  • QR (table tent): https://www.example.com/offer?utm_source=qr-menu&utm_medium=offline&utm_campaign=spring-launch&utm_content=table-tent
  • Paid search: https://www.example.com/offer?utm_source=google&utm_medium=cpc&utm_campaign=spring-launch&utm_term=widget-price — skip this pattern on Google Ads clicks that already use auto-tagging (gclid).

A landing URL that already has ?ref=homepage keeps ref and adds the utm keys beside it:

https://www.example.com/path?ref=homepage&utm_source=newsletter&utm_medium=email&utm_campaign=spring-launch

Build the tracked URL

Five fields, Copy URL. Pair print with a static QR of the same string.

Open the UTM builder

Email, social, QR — the paste step

Email. Put the tagged URL on the button and on the plain-text fallback. Do not tag every footer “view in browser” link with a new campaign. One campaign per send is enough. ESP click tracking may wrap the URL; confirm the utm keys still survive in the address bar after a test send.

Instagram. Bios, story stickers, and ads are different creatives: utm_content=bio-link vs utm_content=story. Organic posts cannot carry a unique URL on the caption itself on every surface — the bio or sticker is the place the tagged link actually lives.

WhatsApp. Paste the tagged URL in the message or the click-to-chat prefill. Medium social keeps it in Organic Social with Instagram. A medium such as wa will not match that default rule.

QR. Encode the full tracked string with the QR generator. Do not encode a vendor shortener that will add its own parameters later. Two tents in the same campaign differ on utm_content only. Static QR + UTM is the pattern in QR codes for marketing.

A homepage nav item with utm_source=homepage starts a new campaign attribution for that session. The person who arrived from the newsletter then looks like homepage traffic. Google’s campaign-tagging help is for traffic you send from campaigns, not for your own chrome. Leave internal links clean.

What each key means, including utm_id, is in every UTM parameter explained. Copy-paste naming examples: UTM naming conventions. Preview the share card with the Open Graph debugger before you boost a tagged social URL.

Encode the QR after the UTM, not before

Static QR of the tracked URL. No FlashKit redirect, no expiry from this site.

Open the QR generator

What “add UTM codes” does not mean

It does not mean wrapping the URL in a branded shortener first. Encode the tagged landing URL. If the string is too long for a small print area, use a short domain you operate, pointed at that same tagged URL. FlashKit’s QR generator encodes the string you paste; it does not mint a FlashKit redirect and it does not expire the code because this site hosts no short-link backend.

It does not mean one tagged URL reused on every surface of a campaign if you care about the split. The five worked URLs above share utm_campaign=spring-launch and differ on source, medium, and sometimes content. That is the useful grain: one promotion, several arrival paths. Inventing a new campaign name per Tuesday send is how Traffic acquisition becomes a junk drawer.

It does not mean tagging Google Ads clicks that already use auto-tagging. Prefer gclid. Google Ads traffic is classified from the Google Ads source platform in default channel grouping, not from a handmade utm_medium=cpc you added on top. The paid-search row in the table is for campaigns that are not already auto-tagged, or for a non-Google paid source you really do tag by hand.

Test send, then print

Email: send a test to yourself. Click the button. Confirm the address bar still contains utm_source=newsletter, utm_medium=email, and the campaign you typed. Some ESPs wrap links; if the wrapper drops query keys, fix the ESP setting before the real send. Instagram: tap the bio or sticker on a second phone. WhatsApp: send the message to a spare account. QR: print one tent, scan it, read the URL. Do not print fifty tents from a shortened URL you have not scanned.

The builder preserves non-UTM query keys. A landing page that already has a language or ref parameter keeps it. Matching utm keys are overwritten, which is how you retag a leftover URL from last year’s campaign without stacking two utm_campaign values. Empty optional fields are omitted; you will not see utm_term= with nothing after the equals sign.

Lowercase and hyphens. Newsletter and newsletter are two sources. spring_launch and spring-launch are two campaigns. GA4 campaign dimensions are case-sensitive even though some channel-group rules are not. Put the convention on a one-line sheet and reuse it. The naming-conventions guide has 25 URLs on https://www.example.com/ you can steal the spelling from; this page is the paste-into-channel walkthrough.

Open Graph tags are a different job. A tagged Instagram URL still needs a title, description, and 1200×630 image if you want the share card to look finished. Preview that with the Open Graph debugger before you boost. The debugger fetches the page; it does not prove the UTM keys arrived in GA4. Those are two checks: card, then click.

Internal links stay untagged. A header, footer, or related-tools block with utm_source=homepage overwrites the session. People who arrived from the newsletter then look like homepage traffic for the rest of the visit. Google’s campaign URL help is for campaigns you send, not for your own navigation. Leave /tool/… and /blog/… links clean, including the ones on this site.

A one-page sheet you can reuse

Write four columns: channel, source, medium, content. Fill the rows once a year. Newsletter / newsletter / email / (blank, or hero-btn if you A/B the button). Instagram bio / instagram / social / bio-link. Instagram story / same source and medium / story. WhatsApp / whatsapp / social / (blank). Table tent / qr-menu / offline / table-tent. Window sticker / same source and medium / window-sticker. Campaign name is not a column on that sheet; it changes per promotion and is the one field you type fresh in the builder.

When a new channel appears (a partner blog, a podcast), add a row instead of inventing a one-off spelling in the send. Partner blogs often use source partner-name and medium referral. Podcast show notes often use source podcast-name and medium audio or referral — pick one and keep it. FlashKit will write whatever string you type; it does not validate against GA4’s default channel table. The default-channel column on this page is documentation from Google’s grouping help, not a dropdown in the form.

After the send, do not rename the campaign in the builder “to make the report tidier.” The clicks already collected the old name. A second spelling is a second campaign. If you made a typo, live with the typo for that send and fix the sheet for the next one. That is cheaper than stitching two campaign names together in an exploration later.

Related Tools