---
updatedAt: 2026-11-10T08:30:13.000Z
agentTools:
  projectIndex: https://docs.esputnik.com/llms.txt
---

# Setting Up UTM Tags

<HTMLBlock>{`
<p align="right" style="color: gray;">
  <a href="https://docs-ua.esputnik.com/docs/nalashtuvannya-peredachi-utm-mitok" style="color: gray; text-decoration: none;"><em>
    Read this article in Ukrainian ⮕
  </em></a>
</p>
`}</HTMLBlock>

UTM tags are code fragments consisting of a parameter and its value. They are added to the URL to maintain the efficiency of marketing campaigns through analytics systems, such as Google Analytics (GA).

You do not need additional integration with analytics systems to obtain UTM tags in eSputnik. The tags generate automatically and trigger as soon as the user clicks on the link. If your analytics system is already set for UTM processing, you are only to track the results.

In eSputnik account you are free to:

* use auto-generation of UTM tags or disable it in the particular message or the entire account;
* add your values for UTM tags within the email and App Inbox messages;
* set UTM tags for all or individual language versions of [multilingual](https://docs.esputnik.com/docs/multilanguage-overview) email, App Inbox and web push messages.
* set custom UTM tags and rules for their substitution globally for the entire account and single email and App Inbox messages.

For a global UTM tags parameters configuration go to **Settings** → **Links** in your eSputnik account.

<Image src="https://files.readme.io/a2e56eac88e3b887b3db894fe2b0bcaf44c544d127ed3722d250c52b73aea0ca-image.png" alt="Settings Links section in eSputnik account for global UTM tag configuration" align="center" width="80%" />

On the **Messages tags** tab, activate the **UTM tags** slider so that parameters about traffic sources start transferring to the analytics system.

<Image src="https://files.readme.io/cafef4282ccb6182c2a6af164c352b4bc78c62b04b2b5fc145a2c2aa1c400e17-image.png" alt="UTM tags slider activated in account settings" align="center" width="80%" />

> 📘 Important
>
> For correct automatic channel labeling (email, Viber, mob push, etc.), the `utm_medium` field should be filled with the `$mediaType` value (as it's set by default), otherwise, campaigns in GA will be counted to one channel specified in this field.

<Image src="https://files.readme.io/83df1c4cd698fb0c1075728a7b06064a8df2f92fbc39bef77cd042718340a7dd-image.png" alt="UTM medium field with mediaType variable for automatic channel labeling" align="center" width="80%" />

Required tags are:

* `$type` – message type (trigger/promo);
* `$mediaType` – message channel (email/Viber);
* `$messageName` – the name of message;
* `$messageId` – message identifier;
* `$contactId` – contact identifier;
* `$messageTags` – tag added to message.

Optional tags are:

* `$messageInstanceId` – message instance identifier. When sending a campaign, each letter, in addition to its messageId, also has an additional id – messageInstanceId. This is the message id of a particular campaign. For example, you are going to send 1 email message to 5 different groups, which means one letter will be sent 5 times. Then all 5 campaigns will have the same messageId but different messageInstanceId. It is useful when you have to compare the effectiveness of 1 message sent to different segments.
* `$dateStart` – campaign start date.
* `$groupName` – segment name.
* `$contactInfoHash` – gives encrypted email + SMS + contact name combination. For example: `ZT1pdmFuLmtoCXxlem92QGVzcTV0bmlrLmNvbSZwPTM4MFk1MzY1OTM3MyZuRT`. Decryption on the side of your site is needed.
* `$messageLang` – message language, when using [multilanguage functionality](https://docs.eSputnik.com/docs/multilanguage-overview).
* `$strategyGroupName` – strategy group name, where contact was found when campaign sending started.
* `$workflowId` – id of workflow in which the message was sent.

If you need to track any of these parameters, specify it in the corresponding **Value** field next to the required **Key** tags.

A message name goes into the link exactly as it is written, so characters such as `«»` can break the address on the receiving site. When `$messageName` is used in a UTM tag, keep the name to letters, digits, spaces, and hyphens.

<Image src="https://files.readme.io/cd590969dd8146e98442c78d9deea67db6219179540618fa59aa34a7dcbb97dc-image.png" alt="Key and Value fields for UTM tag parameters" align="center" width="80%" />

If other keys are required for recognition by your analytical system, activate the **Custom tags** slider and click the **New key** button.

<Image src="https://files.readme.io/91e510913614254a942e6d2f607d115ead6209b13ac0f11bf9e9e49103016a0b-image.png" alt="Custom tags slider and New key button for custom UTM parameters" align="center" width="80%" />

Two fields for the **Key – Value** pair will be shown. Here you can enter the necessary keys and tag values as variables with the **$** sign or your own static expressions. By clicking on the **gear** icon, you can select values ​​from a list. A value from the message data — an event parameter or a contact field — is not substituted here: to put such a value into a link, assemble the address with Velocity, as described in [Dynamic Links in Email](https://docs.esputnik.com/docs/dynamic-links-in-email).

<Image src="https://files.readme.io/fa42b40491348ddf76ac528216ec99084a50f006fcda7aca20f7376427c80ac0-image.png" alt="Key-Value pair fields for entering custom UTM tag parameters" align="center" width="80%" />

## Setting up UTM tags in a particular message

### Email messages

eSputnik generates suitable keys for Google Analitycs by default. But there are two ways to use your tag values:

1. Pasting pre-generated UTM tagged links into your letter.

Open additional letter parameters by clicking on the three dots button at the top bar. The same panel has the **Track URL's** toggle, which switches link wrapping off. Then choose the option **Specify links settings**:

<Image src="https://files.readme.io/09208bd85b5127b52752fd9cd999b435195f5cb6c065f620f3765d6ed768291b-image.png" alt="Three dots menu with Specify links settings option in the email editor" align="center" width="80%" />

Make the UTM tags slider inactive.

<Image src="https://files.readme.io/5a8fed4efa9acfd1156f48d46e76b631382a960c9fb2723208a6ea49b209f9b5-image.png" alt="UTM tags slider set to inactive in message link settings" align="center" width="80%" />

When creating a letter in the editor, enter links with your tags:

<Image src="https://files.readme.io/da6db00ab6b4ab6ff843a4b044f5fc43e1bb09b128a4a57328275d44417edd48-image.png" alt="Link field in the email editor with custom UTM-tagged URL" align="center" width="80%" />

This method is useful, for example, when you need to track the conversions of different buttons or email elements.

> 🚧 Important
>
> When sending a campaign, the priority is always given to a manually entered value, even if the UTM tag switcher is active.

2. Prescribing tags for a specific letter.<br />Go to the top bar and click the three dots button → choose the **Specify link settings** item.

<Image src="https://files.readme.io/421cb1036b9a4d6a20e9e5ac4841390188d3cfb665f9b4ffcce08c6b761dd91f-image.png" alt="Three dots menu with Specify link settings option for email-level UTM configuration" align="center" width="80%" />

Enter the required values without the **$** sign opposite the corresponding keys. Do the same in the **Custom tags** section. If necessary, you can create a new key and enter an additional parameter. After saving, all that you entered will be applied to the current letter.

<Image src="https://files.readme.io/cb1ddb39c9cf3c0c2db7711cde45995eb31e84f8ce7c42512551a98f91005085-image.png" alt="UTM tag values entered for a specific email message" align="center" width="80%" />

Click **Apply** to save the settings, or **Restore defaults** to return the basic parameters.

If you set up tracking of UTM tags within an email message but didn't disable tags at the account settings, then the tag generated within an email will have priority for the analytics system.

Once a message's UTM tags have been manually customized, later changes to the account-level UTM settings (**Settings → Links**) don't automatically update that message — the customized values stay as they are. To bring the message back in line with the current account-level settings, use **Restore defaults** on that specific message.

> 🚧 Important
>
> When a letter is copied, its UTM tags are copied with it. The statistics of two or three letters then land in one report, and measuring the impact of a particular message becomes impossible. If you enter tags manually, check them in every email — a new email created from a template inherits the template's tags.

**Track URL's** is the master switch for link tracking: URL shortening, UTM tags, and custom tags are available only when it is enabled. Click statistics work only through link wrapping — there is no way to disable wrapping and keep click tracking. If you disable **Track URL's** for the whole account or for an individual message, click statistics and UTM tags won't be collected for those links, and Google Analytics won't receive any data. Without wrapping there is no click event either, so a workflow that starts from a link click doesn't launch. UTM tag values are passed only with the click event; delivery and open events don't contain them. Turning the switch back on applies to later sends only: clicks on links in messages that have already gone out are not counted retroactively.

The **UTM tags**, **Custom tags**, and **Use for all language versions** switches work independently of one another.

<Image src="https://files.readme.io/68eeee9ee37ce3e79b20eec3b1e0c8d496f43e8047519114618a06850c228c96-image.png" alt="Track URLs switcher in email link settings" align="center" width="80%" />

### Web Push, Mobile Push, Viber, App Inbox, Telegram

The link settings in these message types are similar to those in Email. You can enable or disable URL's tracking, UTM tags, and add custom tags.

A tap on a mobile push and a click on a link inside the message are recorded differently. Our SDK reports the tap itself, so the message gets the **Clicked** status even when it carries no link at all. Link statistics and segmentation by a clicked link come from wrapped links only, so a URL delivered another way — with **Track URL's** off, or in **Custom data** instead of the **Link** field — doesn't add to them.

Let's take Mobile Push as an example to review the setup process.

1. Go to the **Advanced settings** section and click the **Advanced settings** button.

<Image src="https://files.readme.io/7b3879eef6729d9935ef10e2f3a17139368d652593c30b6fb14c8fdda8a86326-image.png" alt="Advanced settings section in the Mobile Push message editor" align="center" width="80%" />

2. In the pop-up window, enable the following switches:

* Track URL's
* UTM tags

<Image src="https://files.readme.io/7095527817c8a93dcd97b90cca01b46840bc47e279fc79be5c3ca96377bdfc1c-image.png" alt="Track URLs and UTM tags switches enabled in Mobile Push advanced settings" align="center" width="80%" />

3. Enter the required values next to the relevant keys (without the `$` sign). If needed, add custom tags, create new keys, and enter the necessary parameters.

If you're sending multilingual messages, enable the **Use for all language versions** switch to use the same UTM settings for all languages.

<Image src="https://files.readme.io/689b0835416b73e68439d3a0ed3360bb28748655a6c4a7c1a0c22dd900784b5b-image.png" alt="Use to all language versions switch in UTM settings for multilingual messages" align="center" width="80%" />

4. Click **Apply**.

To use custom values, insert a link with a pre-generated UTM tag. You can create it manually or use any available UTM tag generator.

<Image src="https://files.readme.io/574b4a00fca162e3960828f83f1f8129484998af9a48388a78f8b485c43f2d89-image.png" alt="Link field with pre-generated UTM-tagged URL in Mobile Push message" align="center" width="80%" />

> 🚧 Important
>
> When sending a campaign, the priority is always given to a manually entered value, even if the UTM tag switcher is active.

Other parameters in the link, for example, attribution parameters of mobile analytics services, stay unchanged: only UTM tags are added to the link.

When creating an **SMS message** use Enable UTM tags for this message switcher to make the automated UTM tags work. Make sure that `$mediaType` variable is set as a value of the UTM channel. When sending an SMS campaign it will be transformed into `sms` value.

You are free to use your UTM-tagged links. Shortening them by the `bit.ly` service is recommended.

## FAQ

1. Is it possible to use several links with different UTM tags in one email message, will not the data be lost?<br />If there are clicks on these links, they will be displayed in the analytics system.
2. I don't see sales data in Google Analytics, how can I fix it?<br />Google Analytics must be set to eCommerce to track transaction and revenue data. Please contact your GA specialist to ensure that eCommerce tracking is set properly.

<Image src="https://files.readme.io/1fd3c83-3506fe4-utm16.png" alt="Google Analytics eCommerce tracking settings" align="center" width="80%" />

3. How to find a transaction by a particular customer in Google Analytics?<br />You can track information about transactions of a particular subscriber by the **Contact Id** tag if it is specified as a parameter in the UTM tag as `$contactId`.

<Image src="https://files.readme.io/c0a578fb792981e276abd3d9d001cc5cfebdf33be0bf3baf2579c8c35752bf1a-image.png" alt="Contact ID parameter used in UTM tag for tracking individual subscriber transactions" align="center" width="80%" />

4. How soon will the data be sent to Google Analytics?<br />Data is sent to the analytics system immediately after the user clicks on the link in the message.

5. How to track purchases by one certain channel in Google Analytics?<br />Go to Google Analytics, and select **Traffic Sources** → **All Traffic** → **Channels**.<br />Read more about tracking campaign performance in the guide.

6. What data can eSputnik pull from ad platforms (Google, Meta) via UTM tags?<br />UTM tags work in one direction only: eSputnik appends tracking parameters to the links in its own messages, so your analytics system can attribute clicks and on-site actions back to the eSputnik campaign that generated them. eSputnik doesn't pull any data back from ad platforms — it can't retrieve ad clicks, impressions, or other ad-platform-side activity such as clicks on ads themselves.

<Image src="https://files.readme.io/2ed050b-64a1f34-utm2.png" alt="Google Analytics Traffic Sources Channels view for tracking campaign performance by channel" align="center" width="50%" />

### Why UTM tags disappear after an additional redirect

UTM tags are appended to the URL you put in the message. If that link redirects the user to a different address — through a shortening service or a redirect configured on your own site, for example — the UTM parameters reach the destination page only if the redirect forwards the whole query string.

To avoid this, put the final URL in the message, or check the redirect settings on your site, on your server, or in the shortening service. The redirect must pass every query parameter (`?utm_source=...&utm_campaign=...`) to the destination URL.

### Why a plus sign in a link turns into %2B

In a URL, `+` has two readings: in the path it is an ordinary character, while in the query string it stands for a space. When the system processes the links in a message and appends the tracking parameters, it brings the whole address to the unambiguous form, so `+` becomes `%2B` — the same character written as a percent-encoded value.

Most servers decode it back and the link works. If the server expects a literal `+` instead, the page or the file at that address doesn't open, so keep `+` out of paths and file names.