Skip to main content
Contributor I
February 6, 2022
Solved

How to Add a Link to a SMS Number?

  • February 6, 2022
  • 5 replies
  • 1111 views

When i use  "sms:+1234567890 " on button it’s automatic convert "sms://+123456789" this type of link. Then It’s not working. How can i solve this problem? 

 

    This topic has been closed for replies.
    Best answer by Dov

    Hi @Inatabillo,

    Thanks for sharing this with us.

    Can you clarify what your goal for the link is? Are you trying to collect SMS consent from specific user(s)? If so, I recommend checking out creating a click-to-text banner in your email.

    If not, it would be helpful to hear a little more about your end-goal.

    5 replies

    Dov
    DovAnswer
    Klaviyo Alum
    February 7, 2022

    Hi @Inatabillo,

    Thanks for sharing this with us.

    Can you clarify what your goal for the link is? Are you trying to collect SMS consent from specific user(s)? If so, I recommend checking out creating a click-to-text banner in your email.

    If not, it would be helpful to hear a little more about your end-goal.

    DD
    thepowerofcopy
    Partner - Silver
    Partner - Silver
    October 25, 2022

    Hi @Inatabillo,

    Thanks for sharing this with us.

    Can you clarify what your goal for the link is? Are you trying to collect SMS consent from specific user(s)? If so, I recommend checking out creating a click-to-text banner in your email.

    If not, it would be helpful to hear a little more about your end-goal.

    Hello, can we put this to the button? <a href="sms:+1<sending_number>?&amp;body=Send%20this%20text%20to%20subscribe%20to%20SMS%20Updates!%20%28ref:JOIN%29">
    Text JOIN to <sending_number>
    </a>

    Helping consumable products increase revenue by up to 20% by using customer retention strategies through email marketing.
    Dov
    Klaviyo Alum
    October 26, 2022

    Hi @thepowerofcopy,

    Thanks for this question.

    Yes, this should work with a button as well. 

    Thanks for being a community member.
     

    DD
    thepowerofcopy
    Partner - Silver
    Partner - Silver
    October 26, 2022

    Hi @thepowerofcopy,

    Thanks for this question.

    Yes, this should work with a button as well. 

    Thanks for being a community member.
     

    Do you have any article for this? how to put it in the button? @Dov 

    Helping consumable products increase revenue by up to 20% by using customer retention strategies through email marketing.
    Dov
    Klaviyo Alum
    October 28, 2022

    Hi @thepowerofcopy,

    Thanks for your follow-up note.

    We don’t but happy to explain - you'll start with a text block (not an image block), and in the source code, you'll want to add this:

    <a href="sms:+1<sending_number>?&amp;body=Send%20this%20text%20to%20subscribe%20to%20SMS%20Updates!%20%28ref:JOIN%29">

    <img src ="LINK_TO_YOUR_IMAGE" />

    </a>

    So basically, the setup is the same, except instead of directly typing in "Text JOIN to [your number]", you'll instead use a URL that links to your image source. This way, the image will display instead of text, but the button/functionality behind the image is still a click-to-text function. 

    In the code above, you'll need to replace the placeholders with the following:

    1. Replace your sending number

    2. Replace whatever text you want to pre-populate, and make sure you include the ref:JOIN or replace JOIN with whatever keyword you want to use

    3. Replace a link to your image, which you can grab from your brand library: https://www.klaviyo.com/asset-library/images?q=&page=1&order_by=createdon_desc

     I hope that’s helpful.

     

    DD