> For the complete documentation index, see [llms.txt](https://docs.mailtrap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mailtrap.io/email-api-smtp/advanced/tracking-settings-opens-and-clicks-tracking.md).

# Tracking settings - Opens and Clicks tracking

By default, Mailtrap tracks email opens for each email sent, and you can also enable click tracking.

With tracking enabled, you will find the open and click rates in the [Stats dashboard](https://docs.mailtrap.io/email-api-smtp/analytics/dashboard).

{% hint style="info" %}

* Click tracking and custom domain for clicks tracking are available only for paid accounts.
* You can also allow recipients to turn off open and click tracking via an 'opt out of tracking' link. To learn more, [click here](https://docs.mailtrap.io/email-api-smtp/advanced/recipient-tracking-opt-outs).
  {% endhint %}

### Enable or disable tracking for Opens

* Navigate to the **Tracking Settings** tab (Domains → choose your domain)

<figure><img src="https://1476453098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS3xyr7ba7aGO19rc8dSK%2Fuploads%2F6cIMkEhj68OGyIa1Lp7S%2F2.png?alt=media&amp;token=d1337d2f-228d-4bc6-90f6-e54c75adfcb5" alt=""><figcaption></figcaption></figure>

* Toggle the switch next to **Track Opened Emails** to enable or disable tracking opens

{% hint style="info" %}
Tracking opened emails is turned on by default.
{% endhint %}

<figure><img src="https://1476453098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS3xyr7ba7aGO19rc8dSK%2Fuploads%2FuYQC8XZ2eZmWJYdOiLKM%2Fopens.png?alt=media&amp;token=33c30eb6-7523-4784-ae5f-34d9e52f7093" alt=""><figcaption></figcaption></figure>

Mailtrap tracks email opens via an invisible pixel. It’s added to each message sent from your account. When an email is opened, a pixel is loaded, and an ‘open’ event is recorded. Each of these events will be visible in [Email Logs](https://docs.mailtrap.io/email-api-smtp/analytics/logs).

{% hint style="info" %}
Some mailbox providers, browsers, and extensions block invisible pixels. Users can also choose not to display images, or a solution they use to retrieve emails may not support images by default. In each of these cases, an 'open' event won't be recorded even if an email is opened.
{% endhint %}

### Enable or disable tracking for Clicks

* Navigate to the **Tracking Settings** tab (Domains → choose your domain)

<figure><img src="https://1476453098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS3xyr7ba7aGO19rc8dSK%2Fuploads%2Fi5L1SLH1GaVkEFea2STh%2F2.png?alt=media&amp;token=135a496a-5ed0-4015-ba01-ec211b47f6d1" alt=""><figcaption></figcaption></figure>

* Toggle the switch next to **Track Clicks** to enable or disable tracking clicks

<figure><img src="https://1476453098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS3xyr7ba7aGO19rc8dSK%2Fuploads%2FCdaaZo3C6f4oBMIo8oGO%2Fclicks.png?alt=media&amp;token=27f5882a-7d6c-4f4e-883f-e13a4a173c4e" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you enable click tracking, the toggle for **Custom Domain for Clicks Tracking** will be switched on automatically. That way, all links will be redirected through your domain (mt-link.yourdomain.com).
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mailtrap.io/email-api-smtp/advanced/tracking-settings-opens-and-clicks-tracking.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
