> For the complete documentation index, see [llms.txt](https://doc.batch.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.batch.com/guides-and-best-practices/message/email/link-and-tracking-settings/how-to-use-universal-links-in-your-email-templates.md).

# How to use universal links in your email templates?

Universal links let you connect to content deep inside your app using standard HTTP or HTTPS links (see documentation on the [Apple Developer website](https://developer.apple.com/documentation/uikit/core_app/allowing_apps_and_websites_to_link_to_your_content)).

### Tracking redirection links in emails <a href="#h_27f9a381a9" id="h_27f9a381a9"></a>

{% hint style="success" %}
Batch relies on its Email Service Provider’s link tracking to track clicks on your email template links.
{% endhint %}

When an email is sent from your campaign, the ESP (Email Service Provider) replaces the original links with tracking links of its own, for example:

This link:

```
<a href="https://myapp.example.com/albums?albumname=vacation&index=1"> OPEN LINK </a>
```

Is replaced by this one once the email is received:

```
<a href="http://post.eu.spmailtechnol.com/f/a/UtKgWMX8Z_6C6As1- frJKg~~/AABGZAA~/RgRlbNn6P0TTaHR0cHM6Ly9vLmxhbGFsYWIuY29tL3UvbnJkLnBocD9wP Utoa3g4enRhVERfMl8yNDIwNTkxXzFfMyZlbXNfbD00MTE5NzQ1Jmk9MSZkPU1UWTROamc0TlR"> OPEN LINK </a>
```

By managing the redirection using a link of its own, the ESP can track the CTA / link opened actions.

Unfortunately, replacing the universal link causes the redirection not to work. Therefore, when using universal links, you need to disable the ESP link tracking, which means you will not be able to track clicks on these links in your Batch campaign stats.

As an alternative, you can rely on the classic Analytics tracking you probably already add to your links (e.g. ?utm=, etc) and track clicks in your dedicated Analytics tool.

### Dealing with universal links in your template <a href="#h_1401e44352" id="h_1401e44352"></a>

In order not to break redirection on universal links, you can disable the ESP’s link tracking by adding the `data-msys-clicktrack="0"` argument to your link HTML tag as follows:

```
<a data-msys-clicktrack="0" href="[URL]">My link</a>
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.batch.com/guides-and-best-practices/message/email/link-and-tracking-settings/how-to-use-universal-links-in-your-email-templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
