Solved

How to Add a Link to a SMS Number?

  • 6 February 2022
  • 5 replies
  • 160 views

Badge

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? 

 

icon

Best answer by Dov 7 February 2022, 18:32

View original

5 replies

Userlevel 7
Badge +56

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.

Userlevel 2
Badge +9

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>

Userlevel 7
Badge +56

Hi @thepowerofcopy,

Thanks for this question.

Yes, this should work with a button as well. 

Thanks for being a community member.
 

Userlevel 2
Badge +9

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 

Userlevel 7
Badge +56

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.

 

Reply