
## Common tags used in text messages

You can use all tags from [Insert usage](/developers/inserts/insert-usage).

## Adding UTM and tracking parameters to link

If the message includes links, you can automatically add parameters (such as UTM) and track click events by using `{% preparelink %}{% endpreparelink %}`. This will generate a redirect URL based on the hosting environment of your workspace:  

If your workspace is hosted on: 
- Microsoft Azure EU, the default domain redirect URL is `link.snrs.it`,
- Microsoft Azure USA, the default domain redirect URL is `link.azu.snrs.it`
- Google Cloud, the default domain redirect URL is `link.geb.snrs.it`.


  <div class="admonition admonition-tip"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" /></svg></div><div class="admonition-body"><div class="admonition-content">

  On the user interface in the Synerise platform, you can configure how the end user's identifier (UUID) is handled [when a link contains end-user identifying parameters](/developers/web/user-identification#recognizing-customers-from-link-parameters) (`snrs_cl` and `snrs_he`); for detailed instructions, see the ["Managing user context" section](/docs/settings/configuration/non-unique-emails#managing-user-context).

  </div></div></div>
 

### Usage


<pre><code class="language-jinja">{% preparelink %}YOUR_URL{% endpreparelink %}</code></pre>


Example of a parsed link:
```
/?snrs_medium=email&snrs_action=newsletter.click&snrs_test=false&snrs_var=4715029&snrs_cp=6b716f86-a14d-4b8c-8795-872f7432a046&snrs_cl=b5d8c721-c2b7-42ac-9cd5-7714dedf73bf&snrs_category=client._DEVICE_.browser.mail&snrs_he=1940871749&snrs_redir=1
```

## Short links

If you send links in text messages, you can use a Jinjava code to shorten the URL addresses to make the text message look professional and the link more reliable. 

- The default domain of the shortened links is `snrs.it`. If you want to use your own domain, see [Custom subdomain for shortened links](/docs/campaign/SMS/custom-shortener-domain).
- The shortened links don't require HTTPS. If you include a link with `http://` in the message, it will be redirected to HTTPS when opened.
- You can combine short link insert with [prepare link](/developers/inserts/sms#adding-utm-and-tracking-parameters-to-link) to track URL's parameters (such as UTM) and click events from a message.


  <div class="admonition admonition-warning"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z" /></svg></div><div class="admonition-body"><div class="admonition-content">

  The shortened link is valid for 14 days from the date the message is sent.

  </div></div></div>


| Jinjava code                                                                                                            | Description                                                                                           |
|-------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
|  <pre><code class="language-jinjava">{% shorturl %}YOUR_URL{% endshorturl %}</code></pre> | The URL is shortened, however, the clicks aren't collected.                                           |
|  <pre><code class="language-jinjava">{% shorturl %}{% preparelink %}YOUR_URL{% endpreparelink %}{% endshorturl %}</code></pre> | The URL is shortened and the clicks in the link are collected, so this event can be used in analyses. |


#### Example


<pre><code class="language-plaintext">{% shorturl %}{% preparelink %}https://example.com/season-discounts/?utm_source=examplecom&amp;utm_medium=slider&amp;utm_content=examplecom&amp;utm_term=discount-amazon-perf-2_W3&amp;utm_campaign=Campaign-OnGoing{% endpreparelink %}{% endshorturl %}</code></pre>
