Skip to main content
Solved

How to Add a Link to a SMS Number?

  • February 6, 2022
  • 5 replies
  • 885 views

Forum|alt.badge.img+2

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? 

 

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.

View original
Did this topic or the replies in the thread help you find an answer to your question?

5 replies

Dov
Forum|alt.badge.img+61
  • Klaviyo Alum
  • 1493 replies
  • Answer
  • 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.


thepowerofcopy
Partner
Forum|alt.badge.img+11
Dov wrote:

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>


Dov
Forum|alt.badge.img+61
  • Klaviyo Alum
  • 1493 replies
  • October 26, 2022

Hi @thepowerofcopy,

Thanks for this question.

Yes, this should work with a button as well. 

Thanks for being a community member.
 


thepowerofcopy
Partner
Forum|alt.badge.img+11
Dov wrote:

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 


Dov
Forum|alt.badge.img+61
  • Klaviyo Alum
  • 1493 replies
  • 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.