---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/sendgrid/ui/analytics-and-reporting/click-tracking-html-best-practices#article
headline: Click Tracking Best Practices
description: Format HTML links so Twilio SendGrid click tracking can find and replace them, and learn how to disable click tracking for individual links.
url: https://www.twilio.com/docs/sendgrid/ui/analytics-and-reporting/click-tracking-html-best-practices
inLanguage: en
dateModified: 2026-08-28T20:57:52.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# Click Tracking Best Practices

> \[!NOTE]
>
> Depending on the country where your recipient resides, tracking engagement with this feature might require the unambiguous consent of the recipient.

## Format links correctly

If click tracking doesn't replace your original links, review your link formatting. For Twilio click tracking, format your links as follows:

* Write links in the `href` attribute of an HTML `<a>` tag.
* Don't add spaces on either side of the `=` after the `href` attribute.
* Put the URI in double quotes.
* Start the link with `https://`.
* Don't encode your links with Base64.

> \[!NOTE]
>
> Twilio click tracking works for these links:
>
> ```html title="Correctly formatted links"
> <a href="http://www.example.com">My site</a>
> <a href="https://example.com">My site</a>
> <a target="_blank" href="https://example.com">My site</a>
> ```
>
> Twilio click tracking doesn't work with these links:
>
> ```html title="Incorrectly formatted links"
> <a href="example.com">My site</a>
> <a href="www.example.com">My site</a>
> <a href= http://www.example.com>My site</a>
> <a href = "https://example.com">My site</a>
> ```
>
> A link can't use a custom field or be part of a custom field.
>
> * **Don't use**: `<a href="{{ birthday_url }}"></a>`
> * **Use**: `<a href="http://example.com/{{ birthday_url }}"></a>`

## Turn off tracking on an individual link

To turn off click tracking for individual links, add the `clicktracking=off` attribute to the anchor tag *before* the `href`.

```html title="Untrack one link"
<a clicktracking=off href="http://example.com">link text</a>
```

## Replace Twilio SendGrid domains in tracking links

After you configure your authenticated domain, custom tracking links can use your subdomain with certain Twilio SendGrid plans.

| Plan       | [Authenticated][] Sending IP Address | Use own subdomain | Use SendGrid domain |
| ---------- | ------------------------------------ | ----------------- | ------------------- |
| Premier    | **Yes**                              | **Yes**           | No                  |
| Premier    | No                                   | No                | **Yes**             |
| Pro        | **Yes**                              | **Yes**           | No                  |
| Pro        | No                                   | No                | **Yes**             |
| Essentials | Any                                  | No                | **Yes**             |
| Free       | Any                                  | No                | **Yes**             |
| Advanced   | **Yes**                              | **Yes**           | No                  |
| Advanced   | No                                   | No                | **Yes**             |
| Basics     | Any                                  | No                | **Yes**             |
| Free       | Any                                  | No                | **Yes**             |

[authenticated]: /docs/sendgrid/ui/account-and-settings/how-to-set-up-reverse-dns
