Click Tracking Best Practices
(information)
Consider recipient privacy and consent
Depending on the country where your recipient resides, tracking engagement with this feature might require the unambiguous consent of the recipient.
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
hrefattribute of an HTML<a>tag. - Don't add spaces on either side of the
=after thehrefattribute. - Put the URI in double quotes.
- Start the link with
https://. - Don't encode your links with Base64.
(information)
Examples of link formatting
Twilio click tracking works for these links:
1<a href="http://www.example.com">My site</a>2<a href="https://example.com">My site</a>3<a target="_blank" href="https://example.com">My site</a>
Twilio click tracking doesn't work with these links:
1<a href="example.com">My site</a>2<a href="www.example.com">My site</a>3<a href= http://www.example.com>My site</a>4<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>
To turn off click tracking for individual links, add the clicktracking=off attribute to the anchor tag before the href.
<a clicktracking=off href="http://example.com">link text</a>
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 |