Measure and brand

UTM tags explained: what they are and how to use them

What utm_source, utm_medium and utm_campaign mean, why QR codes need them, how QRSansar can add them automatically, and where to see the results in Google Analytics.

UTM tags are short labels added to the end of a web address so your website analytics can tell where each visitor came from. They matter more for QR codes than almost anything else, because a scan arrives with no other clue about its origin. This guide explains what they are, what to put in them, and how QRSansar can add them for you.

What a UTM tag looks like

Here is an ordinary link, and the same link with UTM tags:

https://example.org/donate
https://example.org/donate?utm_source=poster-temple&utm_medium=qr&utm_campaign=spring-appeal

Everything after the ? is a set of labels. They do not change the page: visitors see exactly the same donate page. They are only read by analytics tools such as Google Analytics, which record them against the visit.

Why QR codes need them

When someone clicks a link on another website, their browser usually tells your site which page they came from. A phone camera does not. Without tags, a scan shows up in your analytics either as direct traffic, alongside people who typed your address or used a bookmark, or, when the code shows QRSansar's short countdown page first, as a visit from qrsansar.com. Either way every poster, flyer and sticker looks the same. Your poster could be working brilliantly and you would never see it.

With tags, every visit from the code is labelled, and your analytics can report on the poster, the flyer and the newsletter separately.

The three tags you need

Tag The question it answers Examples
utm_source Which placement sent this visitor? poster-temple, flyer-bazaar, april-newsletter
utm_medium What kind of channel is it? qr, email, social, referral
utm_campaign Which effort does it belong to? spring-appeal-2027, open-day

Two more exist, utm_content and utm_term. You can ignore them unless you want to compare two designs of the same poster (utm_content=design-a and design-b).

Let QRSansar add them for you

You do not need to write any of this by hand. Open a dynamic code from your dashboard and, on its Details tab, under Campaign tracking:

  1. Give it a Campaign name, the same on every code for one effort.
  2. Choose a Channel: where this code lives.
  3. Make sure the Label at the top names the exact spot, such as "Poster, temple gate".
  4. Tick Add campaign tags to the destination automatically.

Each time someone opens the code, QRSansar adds:

Tag Comes from Example
utm_source the code's label (or its short code if the label is empty) poster-temple-gate
utm_medium the channel see below
utm_campaign the campaign name spring-appeal-2027

The channel becomes utm_medium like this, using the names Google Analytics expects:

Channel utm_medium
Print, Event, Other, or not set qr
Email email
Social social
Web referral

Names are turned into tag-friendly form automatically: lowercase, with spaces and punctuation replaced by hyphens.

Three rules keep this safe:

  • A tag already in your destination always wins. If your link already says utm_source=newsletter, that is kept and only the missing tags are added. If you want QRSansar to manage all three, remove the old ones from the destination.
  • Only web addresses are tagged. Phone numbers, email addresses, app links and smart links are left exactly as they are.
  • You see the result before you save. The box under the setting shows the exact address visitors will land on.

Because the code is dynamic, you can switch tagging on, or change the campaign, after the code is printed. Every copy already out in the world follows straight away.

Writing tags yourself

If you would rather control every value, leave automatic tagging off and add the tags to the destination yourself. The free Campaign URL Builder builds the link for you.

Seeing the results in Google Analytics

In Google Analytics 4, open Reports, then Acquisition, then Traffic acquisition. Change the table's first column to Session source / medium to see each placement and channel, or to Session campaign to compare campaigns. New tags can take a day or two to appear in these reports.

QRSansar's own Campaigns page and each code's Analytics tab show scans straight away, whether or not your website has analytics at all.

Good habits

  • Pick names once and stick to them. Spring-Appeal and spring appeal are different campaigns to an analytics tool. QRSansar suggests names you have used before to help.
  • Never put personal details in a tag. Tags are visible in the address bar and stored by analytics tools, so names, emails and phone numbers do not belong in them.
  • Do not tag links between pages of your own website. It starts a new visit in your analytics and hides where the person really came from. Tags are for links that bring people in.
  • One code per placement. Tags tell you where a visit came from only if each placement has its own code. See Get more from your dynamic QR codes and links.

Support guides

¡Mantente actualizado!

Recibe notificaciones sobre nuevas funciones y actualizaciones de QRSansar.