# Measure the traffic your story sends with UTM codes

Source: https://knowledge.intractive.app/en/articles/utm-code

A UTM code is a short label at the end of a link that tells the analytics tool on the destination page where a visitor came from. Intractive adds UTM codes to the links that leave your story, and you can set your own to see how much traffic and how many conversions one story delivers.

## What a UTM code is

Every story you build sends people somewhere: your website, a vacancy, a sign-up page or a webshop. UTM codes show whether that worked. You don't need any technical background to use them.

UTM stands for Urchin Tracking Module. It's a set of labels added to the end of a web address (URL). When someone clicks the link, the labels travel along with the click and show up in the destination's analytics tool, such as Google Analytics 4, Plausible or Matomo.

A tagged URL looks like this:

```javascript
https://www.example.com/?utm_source=summer-mailer&utm_medium=email&utm_campaign=summer-sale
```

Everything before the `?` is the normal web address. Everything after it is the UTM labels, separated by `&`. This example says the visitor came from the summer mailer (source), by email (medium), as part of the summer sale campaign (campaign).

There are five labels. Fill in the first three almost every time.

| Label | Question it answers | Example values |
| --- | --- | --- |
| `utm_source` | Where did they come from? | `intractive`, `newsletter`, `facebook`, `google` |
| `utm_medium` | Through what kind of channel? | `story`, `email`, `cpc`, `social` |
| `utm_campaign` | Part of which campaign? | `recruitment`, `summer-sale`, `spring-launch` |
| `utm_term` | Which keyword or detail? (optional) | `sales_manager`, `running-shoes` |
| `utm_content` | Which specific link or version? (optional) | `link_in_story`, `header_button` |

> [!WARNING]
> Note: UTM values are case-sensitive. Google Analytics counts `Story` and `story` as two different values, which splits your reports. Pick one style and use it everywhere: lower case, no spaces, words joined by `-` or `_`.

## What Intractive adds to outgoing links

Automatic UTM tracking is on by default. When a visitor leaves your story for an external page, Intractive tags that outgoing link with UTM labels. The owner of the destination page then sees in their analytics where the traffic came from.

Intractive checks three cases in this order, and the first one that matches decides what happens.

### 1. Automatic UTM tracking is turned off

If **Disable automatic UTM tracking** is on for the story, Intractive leaves every outgoing link exactly as you wrote it. Nothing is added, even when the visitor arrived with UTM labels of their own. See [Turn off automatic UTM tracking](#turn-off-automatic-utm-tracking).

### 2. The visitor arrived with UTM labels

Say a visitor opens your story through a paid social ad that links to `story.intractive.app/x?utm_source=facebook&utm_medium=paid_social&utm_campaign=spring`. Intractive passes those exact values on to every outgoing link, and doesn't add its own.

Intractive recognises and passes on `utm_source`, `utm_medium`, `utm_campaign`, `utm_term` and `utm_content`. Only the labels that were there are passed on. If the visitor arrived with only `utm_source=newsletter`, the outgoing link gets only `utm_source=newsletter`, and the other labels stay empty.

This lets you trace a conversion back to the original channel, such as Facebook, Instagram or Google, in your own analytics. Without it, every visit would show up as coming from Intractive.

### 3. The visitor arrived without UTM labels

If the visitor opened your story through a link with no `utm_*` labels, Intractive adds its own:

| Label | Value Intractive fills in |
| --- | --- |
| `utm_source` | `intractive` |
| `utm_medium` | `experience` |
| `utm_campaign` | The story name |
| `utm_term` | The project (division) name |

This is the right default for stories that aren't part of a paid campaign. The destination still sees that the visit came from an Intractive experience, and from which story and project.

### Your own UTM labels are never overwritten

If you add a UTM label to an outgoing link yourself, your value wins. Intractive doesn't overwrite a UTM label you set on a **Redirect** block or on a link in a text block. Labels combine one by one: only the missing ones are filled from the visitor's labels, or from Intractive's own labels when the visitor arrived without any. So your own `utm_content` with an inbound `utm_source` gives both. UTM labels are set per link, and there is no story-level setting for your own. To measure one specific story, use your own UTM labels. See [Create your own UTM link](#create-your-own-utm-link).

### Which links get tagged

Intractive tags most links that send a visitor out of your story:

- buttons in **Redirect** blocks (both variants)
- links inside text blocks
- buttons set up with an external URL

They don't apply to navigation inside the story, such as moving between scenes or branches. That traffic doesn't leave the story, so there's nothing to attribute.

**QR code** and story options in a **Redirect** block get no UTM labels, and neither does a link that doesn't start with `http://` or `https://`.

## Turn off automatic UTM tracking

Turn tracking off for internal or unbranded stories where you don't want UTM labels on your outgoing links. Leave it on for campaign stories. The setting applies to one story at a time.

You need the admin role in the project.

1. Open the story in the editor.
2. Select the gear button (**Story settings**) on the right of the top bar.\
   \[screenshot: the story editor top bar with the Story settings gear button highlighted\]
3. In **Story settings**, go to **Admin** (**Tracking** in the classic editor).
4. Turn on **Disable automatic UTM tracking**.

   ![](https://storage.googleapis.com/intractive-knowledge-media/04c0212df07422d0f351ffde9e2eb6bf73407124c88f72602a64b4790a21dd1b.png)
5. Publish the story again with the **Publish** button in the editor toolbar.

The change takes effect once the story is republished. Until then, the old behaviour stays live.

## What the destination sees without UTM codes

Even without UTM labels, the destination usually knows the visit came from your story. The visitor's browser passes on the website they came from. This is the referrer, and analytics tools show it as referral traffic.

Intractive shares only the domain your story runs on. That's your custom domain if you have one, for example `https://stories.yourbrand.com`, and otherwise `https://web.intractive.app`. The story's path, the current scene and anything else after the domain are never shared.

This works on every outgoing link, separately from the UTM rules. So the destination still sees your story's domain when **Disable automatic UTM tracking** is on, or when your own link has no UTM labels.

The destination sees no referrer when:

- the destination page uses `http://` instead of `https://`, because browsers don't pass a referrer to an unencrypted site
- the visitor's browser or a privacy extension removes referrers

In those cases, only UTM labels can tell the destination where the visit came from.

## Create your own UTM link

Build your own tagged link when you want to answer a precise question, such as how many people this story sent to a page. UTM labels measure traffic at the destination, not story views. Story views are in story analytics, split by share entry. The values you choose are the ones that show up in your reports.

You don't have to type UTM codes by hand. Google's free GA4 Campaign URL Builder builds the link for you.

1. Go to [ga-dev-tools.google/ga4/campaign-url-builder](https://ga-dev-tools.google/ga4/campaign-url-builder/). The form has one field per UTM label.
2. In **Website URL**, enter the page you want to send people to, for example your vacancy page.
3. In **Campaign source** (`utm_source`), enter where the traffic comes from, for example `intractive`.
4. In **Campaign medium** (`utm_medium`), enter the type of channel, for example `story`.
5. In **Campaign name** (`utm_campaign`), enter the campaign this link belongs to, for example `recruitment`.
6. Optional: in **Campaign term** (`utm_term`), add extra detail, for example the specific vacancy.
7. Optional: in **Campaign content** (`utm_content`), add which link in the story was clicked.
8. Optional: if you run a campaign, enter its ID in **Campaign ID**.

   ![](https://storage.googleapis.com/intractive-knowledge-media/f1008f7198eddaf2d2aa7cb4089858bd587f0424d706000fc441ca7456a1f1e9.png)
9. Copy the full tagged URL that the tool builds at the bottom of the page.
10. In your story, paste the link as the destination of a **Redirect** block button or of a link in a text block.\
    \[screenshot: a Redirect block with a UTM-tagged URL entered as its destination\]

Every visitor who reaches the page through your story arrives labelled, so you can tell them apart from every other traffic source in your analytics tool.

### Example: a recruitment story

You have a story called "sales manager story" in your "recruitment" project. The story is about the vacancy, and it ends with a **Redirect** block that sends the visitor to the application form in your ATS. The button uses your UTM link, so every applicant arrives with the same tags and you can see where they came from. A **Form** block's submit button can't carry a UTM link, and form data reaches your ATS through an integration.

In the GA4 Campaign URL Builder, you fill in:

| Field | Value |
| --- | --- |
| **Website URL** | `https://www.yourwebsite.com/vacancies/sales-manager` |
| **Campaign source** | `intractive` |
| **Campaign medium** | `story` |
| **Campaign name** | `recruitment` |
| **Campaign term** | `sales_manager` |
| **Campaign content** | `link_in_story` |

The tool builds this link, which measures how many people the story sends to a sales manager vacancy on your own website:

```javascript
https://www.yourwebsite.com/vacancies/sales-manager?utm_source=intractive&utm_medium=story&utm_campaign=recruitment&utm_term=sales_manager&utm_content=link_in_story
```

## Read the results in your analytics tool

Once your tagged links are live and people start clicking, open the analytics tool on the destination site. This is most often Google Analytics 4.

1. Open the **Traffic acquisition** report.
2. Look at the dimensions **Session source / medium** and **Session campaign**. For `utm_term` and `utm_content`, use **Session manual term** and **Session manual ad content**.\
   \[screenshot: GA4 Traffic acquisition report with intractive / story under Session source / medium\]

You'll find the exact values you set, with the number of visits and conversions next to them. For the vacancy link above, that's `intractive / story`, `recruitment`, `sales_manager` and `link_in_story`.

## Next

- [\[GA4\] Traffic acquisition report](https://support.google.com/analytics/answer/12923437?hl=en&co=GENIE.Platform%3DAndroid): Google's help article on finding out where users come from.
