my-appengineer Courses

UTM tags and channels: knowing where visitors come from

Tracking you can trust: events, campaigns and funnelsLesson16 min8 / 22

"Where do my buyers come from?" sounds like a simple question. In practice, half of the answer often lands in a bucket called direct or unassigned, and you end up guessing. This lesson shows how analytics decides the source of a visit, why it goes wrong, and how a strict UTM convention fixes most of it.

How a tool decides where a visit came from

When someone lands on your site, the analytics tool looks at two things:

  1. The referrer: the page the browser says the visitor came from (for example google.com or instagram.com).
  2. Campaign parameters in the URL: the UTM tags, and ad click IDs such as Google's gclid.

From these it assigns a source (where exactly: google, newsletter, instagram) and a medium (what kind: organic, cpc, email, social, referral). Tools then group those into channels (Organic Search, Paid Search, Email, Organic Social and so on). GA4 does this with its default channel grouping, which relies on specific medium values.

If there is no referrer and no UTM tag, the visit becomes direct. That happens much more often than people think:

  • Links in apps (Instagram, TikTok, WhatsApp, Messenger) often do not pass a referrer.
  • Links in email clients and PDFs usually do not.
  • Privacy features in browsers can strip referrers or parameters.
  • People copy and paste links into chats ("dark social").

So your email newsletter and your Instagram bio, if untagged, quietly inflate "direct".

The five UTM parameters

ParameterQuestionExample
utm_sourceWho sent the visitor?newsletter, instagram, google, partner-blog
utm_mediumWhich type of channel?email, social, cpc, paid_social, referral, affiliate
utm_campaignWhich campaign or theme?winter_sale_2026, bio_link, welcome_flow
utm_contentWhich link or creative?hero_button, video_a, footer_link
utm_termWhich keyword (paid search)?orthopaedic_dog_bed

A tagged link looks like this:

https://pawsandco.example/products/dog-bed?utm_source=newsletter&utm_medium=email&utm_campaign=winter_sale_2026&utm_content=hero_button

You do not have to type these by hand. Google's free Campaign URL Builder builds the link for you.

Google's Campaign URL Builder with fields for website URL, campaign source, medium and name
Google's Campaign URL Builder: fill in the fields and copy the tagged link.

A UTM convention you can keep for years

UTM tags are case-sensitive and unforgiving: Email, email and e-mail become three different mediums. Write one convention and stick to it.

Paws & Co's convention:

  • Everything lower case, words joined with underscores, no spaces or special characters.
  • Fixed list of mediums (nothing else is allowed): email, social, paid_social, cpc, referral, affiliate, qr, sms.
  • Fixed list of sources per medium: email → newsletter, flow; social → instagram, tiktok, facebook, pinterest; paid_social → meta, tiktok; cpc → google, bing.
  • Campaign names: theme_yyyy_mm or a stable name for always-on links (bio_link, welcome_flow).
  • Content describes the link or creative: hero_button, story_swipe, video_a.
Tip

Keep your convention and every link you create in a simple spreadsheet: date, final URL, source, medium, campaign, content, where it is used. Six months later, that sheet explains every line in your reports.

Watch out

Never put UTM tags on internal links (from your own homepage to your own product page). The tool then starts a new "visit" with the wrong source, and the original source (for example the Google ad that brought the visitor in) is lost. UTMs are only for links from outside your site to your site.

Also keep personal data out of URLs: never put an email address or customer name in a UTM value. Email tools sometimes offer to add a subscriber ID; check what it adds before you enable it.

How it works in your country

UTM tags themselves are not cookies, but the analytics tool that reads them usually is subject to your country's consent rules (see module 1). Check your regulator, for example the Autoriteit Persoonsgegevens (Netherlands), UODO (Poland), the CNIL (France) or the ICO (UK). Email tracking parameters can also be personal data when linked to a subscriber.

What to tag, by business

LinkPaws & CoBookwiseGreenThumb Academy
Newsletternewsletter / email / <campaign>newsletter / email / product_update_2026_11newsletter / email / <lesson theme>
Automated emailsflow / email / abandoned_cartflow / email / trial_day_3flow / email / welcome_flow
Social bioinstagram / social / bio_linklinkedin / social / profile_linkpinterest / social / pin_<topic>
AdsPlatform auto-tagging plus UTMsSameSame
Partners<partner> / referral / <campaign><partner> / affiliate / <campaign><partner> / referral / podcast_2026_10
Print or packaginginsert_card / qr / reorder_2026

Ad platforms: Google Ads uses auto-tagging (the gclid) for linked GA4 accounts; still add UTMs if you use other analytics tools. For Meta, TikTok and others, add UTMs in the ad's URL parameters field. The course Paid advertising goes deeper into ad tracking.

Channels on the platform

For apps on my-app.engineer, Pulse groups visits into channels with pulse_channels and shows how far visitors get with pulse_funnel. Tag your links with the same convention and check that your campaigns show up as separate sources there.

Ask Claude
For my app [app name] on my-app.engineer, call pulse_list_apps and then pulse_channels for the last 30 days. List every source and medium you see, and flag values that break this convention: lower case, underscores, mediums only from [email, social, paid_social, cpc, referral, affiliate, qr, sms]. Then tell me which share of visits is direct or unknown, and which of my own links (newsletter, bio, partners) probably end up there because they are untagged. Change nothing.

Open Pulse

Attribution in one paragraph

Even with perfect tags, a customer often visits several times before buying: an Instagram post, then a Google search, then a newsletter. Which channel "gets" the sale depends on the attribution model. Most tools default to some form of last click (ignoring direct where possible) or a data-driven model. Do not obsess over it at small scale. Use your tags to see which channels bring engaged visitors and buyers, look at assisted paths now and then, and judge your total marketing spend against total revenue (the course Paid advertising calls this MER).

Your task

Write your UTM convention (allowed mediums, sources, campaign naming) and create your link sheet. Then tag every link you control today: newsletter template, automated emails, social bios, partner links and QR codes. Note the date: from now on, "direct" should shrink.

This course is general information, not personal legal, tax or financial advice. Rules, amounts and dates change: check the official source for your country before you act.