# SMS Shorten URLS & Mautic tokens

**URL:** <https://forum.mautic.org/t/sms-shorten-urls-mautic-tokens/21615>\
**Category:** Product Support\
**Created:** [November 15, 2021, 12:06pm UTC](https://forum.mautic.org/t/sms-shorten-urls-mautic-tokens/21615 "2021-11-15T12:06:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [November 15, 2021, 12:06pm UTC](https://forum.mautic.org/t/sms-shorten-urls-mautic-tokens/21615/1 "2021-11-15T12:06:35Z")

</div>

I was wondering if anyone has any experience with using a link shortener similar to bitly in order to shorten a url, HOWEVER to also add in a mautic token like {contactfield=firstname}.

---

<div class="post-metadata">

**Author:** ![tobsowo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tobsowo/32/3096_2.png) [@tobsowo](https://forum.mautic.org/u/tobsowo)\
**Post date:** [November 15, 2021, 1:14pm UTC](https://forum.mautic.org/t/sms-shorten-urls-mautic-tokens/21615/2 "2021-11-15T13:14:18Z")

</div>

It seems YOURLS could be integrated into Mautic. I’m not sure how that will be done (I’m not a Developer).

For SMS tokens I think that should not affect the actual sms character count in the sense that {contactfield=firstname} will be replace with the actual first name, maybe a preview with word count might help and having to have text messages that are of less characters so that when it is sent, it does not use more than 1 SMS unit.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [November 15, 2021, 2:03pm UTC](https://forum.mautic.org/t/sms-shorten-urls-mautic-tokens/21615/3 "2021-11-15T14:03:21Z")

</div>

Hi @tobsowo  
Thanks for the quick response. I am using shlink, however for the point of testing I went with bitly.

I created an access token and followed the instructions here:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/384857523bf9febec9ac68479d2beb45f66ad007.png)

Ifixed the link as it should be api- whatever,

the issue is it does not seem like it is working

---

<div class="post-metadata">

**Author:** ![tobsowo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tobsowo/32/3096_2.png) [@tobsowo](https://forum.mautic.org/u/tobsowo)\
**Post date:** [November 15, 2021, 5:19pm UTC](https://forum.mautic.org/t/sms-shorten-urls-mautic-tokens/21615/4 "2021-11-15T17:19:57Z")

</div>

Maybe we might have someone that could help, I have not used the URL Shortener before. I created a post to request for this feature just like we have for Email Settings where it is easy to have providers already listed and we just add the necessary configuration information e.g. YOURLS, Bitly, Shlink etc.

The feature request is here: [Support for URL Shortener](https://forum.mautic.org/t/support-for-url-shortener/21616)

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [April 21, 2023, 1:05pm UTC](https://forum.mautic.org/t/sms-shorten-urls-mautic-tokens/21615/5 "2023-04-21T13:05:10Z")

</div>

Just a small update on this topic. We went ahead and installed self hosted YOURLS and it works great with Mautic. Will post tutorial in the next week or so for those that are interested.

---

<div class="post-metadata">

**Author:** ![tobsowo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tobsowo/32/3096_2.png) [@tobsowo](https://forum.mautic.org/u/tobsowo)\
**Post date:** [April 21, 2023, 1:27pm UTC](https://forum.mautic.org/t/sms-shorten-urls-mautic-tokens/21615/6 "2023-04-21T13:27:58Z")

</div>

I’ll be looking forward to reading this.

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [May 23, 2023, 1:15pm UTC](https://forum.mautic.org/t/sms-shorten-urls-mautic-tokens/21615/7 "2023-05-23T13:15:06Z")

</div>

Looking forward!  
🙂

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [May 24, 2023, 7:14am UTC](https://forum.mautic.org/t/sms-shorten-urls-mautic-tokens/21615/8 "2023-05-24T07:14:32Z")

</div>

I only there were more hours in the day… I promise to get to it and post as it is a great solution.

---

<div class="post-metadata">

**Author:** ![tobsowo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tobsowo/32/3096_2.png) [@tobsowo](https://forum.mautic.org/u/tobsowo)\
**Post date:** [July 25, 2023, 12:20pm UTC](https://forum.mautic.org/t/sms-shorten-urls-mautic-tokens/21615/9 "2023-07-25T12:20:57Z")

</div>

Hey, Mike.

Just checking up on this.

---

<div class="post-metadata">

**Author:** ![nigelst1](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@nigelst1](https://forum.mautic.org/u/nigelst1)\
**Post date:** [July 8, 2024, 1:29pm UTC](https://forum.mautic.org/t/sms-shorten-urls-mautic-tokens/21615/10 "2024-07-08T13:29:06Z")

</div>

Hi Mike, I’m very interested in this. If you have a chance to post something about how you did it, I’d be very appreciative. Thank you.
