You are here:
Link Tracking
In MobileConnect, use link tracking to measure your SMS campaigns that contain URLs. Use one of these shorteners to track links.
Marketing Cloud Engagement: Use the Engagement shortener in MobileConnect to measure the user engagement and campaign effectiveness. Track the total clicks for all subscribers and unique clicks per subscriber. Unique clicks are calculated based on verified clicks metric that filters out user agents, such as device previews, and data centers like AWS and Google Cloud. View the aggregated tracking information on the Message Details page, Journey Builder Analytics page, and Journey Builder SMS Analytics page. For more information, see SMS Link Clicks Report.
Bitly: When you use Bitly, MobileConnect tracks the total clicks and click percentage, which is the total number of clicks divided by the total number of delivered messages. The Message Details page lists the total clicks compiled within 90 days after sending the message. To track the performance of different messages with the same link, create a different personalized link in Bitly for each message. MobileConnect doesn’t track branded Bitly links.
To track a link, you can add or modify it only during message creation or before sending the message. When editing a recurring message, you can’t change the link that is tracked. To change the link for responder templates, edit the message before it’s activated.
MobileConnect tracks all the shortened links that it finds in these message fields:
- Outbound - Outbound Message
- Text Response - Response Message
- Vote/Survey - Response Message
- Mobile Opt-in - Confirmation Message
- Info Capture - Confirmation Message
- Send Email - Response Message
- Email Opt-in - Confirmation Message
- Outbound Media - Outbound Message
- Media Response - Response Message
- Media Share - Response Message
- Keyword Opt-out - Response Message
Dynamic Links
Marketing Cloud Engagement shortener supports dynamic links by using personalization strings or AMPscript which use values from an attribute, data extension field, or a variable. Use the correct AMPscript for dynamic links to avoid incorrect link shortening and subscriber errors.
Here are some guidelines with examples:
- Use dynamic query parameters in your URLs when sending an SMS to a Data Extension with
NameandSubscriberKeycolumns. If the link only contains dynamic query parameters, you can create it by using inline AMPscript to ensure trackability. However, if you need a dynamic hostname and path in the URL, use theRedirectTo()function.Hi %%=AttributeValue('Name')=%%, Here is your current balance: http://www.examplestore.com/balance?user=%%=AttributeValue('SubscriberKey')=%%&source=sms - URLs containing dynamic query parameters must not include AMPscript in the protocol or
hostname sections, but only in the query parameter
section.
Click here - http://www.example.com/balance?user=%%=AttributeValue('SubscriberKey')=%%&source=smsClick here - https://www.example.com/balance?amount=%%=v(@balance)=%% - When a Data Extension includes the
IndividualUrlcolumn with each subscriber link, wrap the URL inRedirectTo()to track and shorten them.Click here - %%=RedirectTo(AttributeValue('IndividualUrl'))=%% - Create a URL in AMPscript block.
%%[ SET @url = Concat("https://", "www.example.com/" ,"?param1=value") ]%% Click here - %%=RedirectTo(@url)=%%The
CloudPagesURL()function only works for mobile contacts who are included in the email channel's All Subscribers list. - SMS sent to a Data Extension with columns
HostnameandPathcorresponds to the hostname and path of the link. For example, you can dynamically generate URLs in AMPscript and track them.%%[ VAR @url, @host, @path SET @host = AttributeValue('Hostname') SET @path = AttributeValue('Path') SET @url = Concat("https:// ", @host, "/", @path, "?", "param1=value") /* Eg generated URL - https://hostname1/path1?param1=value */ ]%% Click here : %%=RedirectTo(@url)=%% - Link shortening is disabled when you use
ContentBlockById(),ContentBlockByKey(), orContentBlockByName()content functions.
Link Expiration
Shortened links expire in 90 days and after the links expire, subscribers receive a page not found error.

