Best Practices for Click-to-Chat (wa.me) Links
Click-to-Chat URLs let visitors start a conversation without saving phone numbers into their contacts first. However, unescaped spaces, leading zeros, hyphens, or missing international dial codes regularly break links across iOS and Android webviews.
Formatting Rules Under E.164 & RFC 3986
- Strip Formatting Punctuation: Never include
+, spaces, parentheses, or dashes in thewa.me/<number>path segment. Always lead with the international country code (for example,91for India or1for US/Canada). - Percent-Encode Query Strings: Line breaks and symbols like
&,?, or#inside pre-filled messages must be percent-encoded using standard MDN encodeURIComponent rules so tracking tags or multi-line bullets are not truncated on redirect. - Pair with Attribution Tags: Embedding a short bracketed campaign tag inside the prefilled message gives sales teams immediate context inside any CRM or WhatsApp Team Inbox without relying solely on browser cookies.