# Add UTM Tracking to SMS Campaigns

UTM tracking adds campaign parameters to URLs in an SMS message. Use it when you want Google Analytics, Adobe Analytics, or another analytics platform to attribute website traffic to a specific Engage Studio campaign.

## Enable UTM Tracking

1. Open an SMS One-off Campaign or Always-on Campaign.
2. Open the UTM tracking settings.
3. Turn on UTM tracking.
4. Enter the required **Medium**, **Source**, and **Campaign** values.
5. Review the resulting URL and message segment count.
6. Save the campaign.


Engage Studio SMS UTM Tracking settings with Medium, Source, and Campaign fields
UTM tracking is available for One-off and Always-on Campaigns. When enabled, Engage Studio appends the parameters to links in the message.

## UTM Parameter Fields

| Field | UTM parameter | Required | Default | Description |
|  --- | --- | --- | --- | --- |
| Campaign ID | `utm_id` | No | Auto-generated | Read-only campaign identifier |
| Medium | `utm_medium` | Yes | `sms` | Marketing channel |
| Source | `utm_source` | Yes | `treasureai` | Traffic referrer; Liquid syntax is supported |
| Campaign | `utm_campaign` | Yes | User-defined | Campaign name, such as `spring_sale` |
| Source Platform | `utm_source_platform` | No | `treasureai` | Platform directing traffic |
| Marketing Tactic | `utm_marketing_tactic` | No | Empty | Targeting criteria, such as `remarketing` |


## Validation Rules

- **Medium**, **Source**, and **Source Platform** accept up to 100 characters.
- **Campaign** and **Marketing Tactic** accept up to 40 characters.
- Use letters, numbers, hyphens (`-`), underscores (`_`), and periods (`.`).
- **Source** also accepts `{` and `}` for Liquid syntax.
- Spaces and other special characters are not allowed.
- Values are converted to lowercase before they are appended to the URL.


For example, `https://example.com/offers` can become:

```text
https://example.com/offers?utm_id=019dacdc-de23-7193-a9a4-4d2eb9a6b514&utm_medium=sms&utm_source=treasureai&utm_campaign=spring_sale&utm_source_platform=treasureai&utm_marketing_tactic=remarketing
```

## UTM Tracking and Link Shortening

UTM tracking and link shortening serve different purposes:

- **UTM tracking** adds campaign parameters to the destination URL.
- **Link shortening** replaces an eligible URL with a Treasure AI short URL.
- **Click tracking** records selections of shortened URLs in Engage Studio.


You can use UTM tracking together with [Shorten Links in SMS Campaigns](/ja/products/marketing-cloud/engage-studio/channels/sms/shorten-links-in-sms-campaigns). Review the message segment count after adding parameters because a longer URL can increase the number of segments.

## Related Pages

- [Create an SMS Campaign](/ja/products/marketing-cloud/engage-studio/channels/sms/create-sms-campaign)
- [Track Clicks in SMS Campaigns](/ja/products/marketing-cloud/engage-studio/channels/sms/track-clicks-in-sms-campaigns)
- [SMS Message Requirements and Limits](/ja/products/marketing-cloud/engage-studio/channels/sms/sms-message-requirements)