Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

OPT out URL shortening in SMS deliveries

ihm185
Level 4
Level 4

Hello everyone,

we have an opt-out link created for SMS deliveries. It's an application where users get to tick the checkbox and it unsubscribes the user from a particular channel (email / SMS)

Currently, the URL is like

https://m.comms.ourdomain.com/webApp/smsOptOut?id=<%= escapeUrl(cryptString(recipient.id)) %>

which is very long and utilizes more than half of 160 characters. We tried to use bit.ly and other URl shorteners but getting invalid URL error. Can you please suggest how to solve this?

Kind regards,

Imran

1 Accepted Solution
Florian_Courgey
Correct answer by
Community Advisor
Community Advisor

Hi,

Params forwarding works with tiny url. I created your url, it gives https://tinyurl.com/yxtvyv2r, then you can just append your "id" param, ex with 1234: https://tinyurl.com/yxtvyv2r?id=1234 redirects to https://m.comms.ourdomain.com/webApp/smsOptOut?id=1234

Regards

View solution in original post

7 Replies
wodnicki
Community Advisor
Community Advisor

Hi,

It's mind-boggling how no one in the link-shortening industry's been able to spend the 10 minutes of engineering to implement url param fwding. To solve this can make your own shortener that fwds params (and put all the other shorteners out of biz), or write js in a workfow activity or control typology to shorten url's as they pass through.

Thanks,

-Jon

ihm185
Level 4
Level 4

Thank you Jon for replying,

the challenge is to target the recipient which is done by the parameter passed in the URL. When i shorten the URL, this doesn't work.

Is there any other way we can achieve that?

Jean-Serge Biron

shrawan

badr eddine

Thanks,

Imran

Milan_Vucetic
Community Advisor
Community Advisor

I would say that is not best practice to use URL for SMS opt-outs, even almost everyone have a smartphone there are a lot of people with feature phone. If you already have SMS channel, consider to create web service for SMS opt-outs (ex. customers sends STOP on short number 1111).

You may try Google URL Shortener

Regards,

Milan

Florian_Courgey
Correct answer by
Community Advisor
Community Advisor

Hi,

Params forwarding works with tiny url. I created your url, it gives https://tinyurl.com/yxtvyv2r, then you can just append your "id" param, ex with 1234: https://tinyurl.com/yxtvyv2r?id=1234 redirects to https://m.comms.ourdomain.com/webApp/smsOptOut?id=1234

Regards

View solution in original post

Yassine_N
Level 3
Level 3

Hello,

this may help you

Link Shorteners

Also the integration with a 3rd party shortener is there to explore

craigthonis
Employee
Employee

Hi Ihm,

On the Campaign side of things, it's typically recommended to use short codes as mentioned above to avoid this limitation.

Regards,

Craig