# Shorten Links in SMS Campaigns

Engage Studio can replace eligible HTTPS URLs with shorter, recipient-specific URLs. Shortened links preserve space in an SMS message and provide the link required for native Engage Studio click tracking.

Use this page for SMS One-off Campaigns and Always-on Campaigns that contain destination URLs.

## Prerequisites

Before enabling link shortening, make sure that:

- A short code has been provisioned and assigned to your workspace.
- Your activation maps `phone_number` in [E.164 format](https://help.twilio.com/articles/1260803420489).
- Your audience or activation excludes opted-out recipients.
- Your message contains an HTTPS destination URL.


For general setup, see [Set Up SMS Sending](/products/marketing-cloud/engage-studio/channels/sms/set-up-sms-sending). For campaign creation, see [Create an SMS Campaign](/products/marketing-cloud/engage-studio/channels/sms/create-sms-campaign).

## Enable Link Shortening

1. Open **Engage Studio**.
2. Open **Engage Studio Configurations** and select your workspace.
3. Under **SMS links click tracking**, turn on the workspace setting and select **Save**.

4. Add an HTTPS destination URL to the message body.
5. Turn on **Use TD shortened URL** in the campaign.

6. Review the message preview and segment count.
7. Save and launch the campaign.


The workspace setting is required before a campaign can record native click events. The campaign-level **Use TD shortened URL** setting determines whether eligible URLs are replaced with Treasure AI short URLs. There is no separate campaign-level click-tracking switch.

Important
Engage Studio generates the final short URL when the campaign is processed for delivery. The message editor and preview do not show a live recipient-specific URL.

## How Link Shortening Works

When the campaign is sent, Engage Studio:

1. Renders the message for each recipient.
2. Finds eligible URLs in the rendered message.
3. Generates a unique short URL for each recipient and destination URL.
4. Stores the short URL and destination URL relationship.
5. Replaces the eligible URL in the message.
6. Sends the message with the shortened URL.


Each recipient receives a unique short URL, even when recipients receive the same campaign and destination URL.

## URL Eligibility

Only HTTPS URLs are eligible for shortening. The following URLs remain unchanged:

- HTTP URLs
- Malformed URLs
- URLs longer than 2,048 characters
- URLs that already use a Treasure AI short-link domain (`*.t6e.ai`)
- URLs pointing to `localhost`, `*.localhost`, `127.0.0.1`, or `::1`


A maximum of five eligible URLs can be shortened in one message. Skipped URLs remain unchanged and do not cause the SMS to fail.

Note
Engage Studio uses a Treasure AI-managed short-link domain. Customer-branded domains require separate domain configuration and are not covered on this page.

## Preview Shortened Links

The message preview displays a fixed-length placeholder short URL so that you can estimate the message length. The placeholder is not a live link and does not create a link record. The final short URL is generated separately for each recipient when the campaign is sent.

## Link Expiration

Shortened links expire 90 days after they are generated for delivery. After expiration, the link returns `404` and its token is not assigned to another URL.

## Link Shortening and UTM Tracking

Link shortening and UTM tracking serve different purposes:

- **Link shortening** replaces an eligible URL with a shorter URL.
- **UTM tracking** adds campaign parameters to the destination URL.
- **Click tracking** records selections of shortened URLs.


You can use these features together. See [Add UTM Tracking to SMS Campaigns](/products/marketing-cloud/engage-studio/channels/sms/add-utm-tracking-to-sms-campaigns) and [Track Clicks in SMS Campaigns](/products/marketing-cloud/engage-studio/channels/sms/track-clicks-in-sms-campaigns).

Review the segment count after enabling link shortening or UTM tracking because URL content can increase message length and delivery cost.

## Troubleshooting

### The URL Was Not Shortened

Confirm that:

1. **SMS links click tracking** is enabled for the workspace.
2. **Use TD shortened URL** is enabled for the campaign.
3. The URL uses HTTPS.
4. The URL is not longer than 2,048 characters, malformed, a localhost URL, or an existing Treasure AI short-link URL.
5. The message contains no more than five eligible URLs.


### The Preview Shows a Placeholder URL

This is expected. A live short URL is generated only when the campaign is processed for delivery.

### The SMS Uses More Segments Than Expected

Review the message text, personalization values, destination URLs, UTM parameters, number of URLs, and character encoding. See [SMS Message Requirements and Limits](/products/marketing-cloud/engage-studio/channels/sms/sms-message-requirements).

### The Shortened Link Returns `404`

Confirm that the complete link was copied correctly and that it was generated within the 90-day expiration period.

## Related Pages

- [Track Clicks in SMS Campaigns](/products/marketing-cloud/engage-studio/channels/sms/track-clicks-in-sms-campaigns)
- [View SMS Delivery Events](/products/marketing-cloud/engage-studio/channels/sms/view-sms-delivery-events)
- [Troubleshoot SMS Delivery](/products/marketing-cloud/engage-studio/channels/sms/troubleshoot-sms-delivery)