Yes, you can use the TEL URL Scheme. For example: tel:+12819374192
.
In its original format, Manychat doesn't recognize it as a valid URL. However, you can use it this way: tel://+12819374192
.
BUT...
Manychat always includes a tracking parameter on buttons to identify the number of clicks, and this BREAKS the tel:
scheme .
Therefore, a "small" workaround is necessary:
- You need to create a page on your domain (let's assume the path is "your-domain.com/tel").
- On this page, insert only the following script:
<script>
function getQueryParam(param) {
let urlParams = new URLSearchParams(window.location.search);
return urlParams.get(param);
}
let phoneNumber = getQueryParam('phone');
if (phoneNumber) {
window.location.href = `tel:${phoneNumber}`;
}
</script>
This script takes the value of the phone parameter and redirects the page to tel:+phone
. - Publish the page.
Now you just need to insert the link in this way on a button in Manychat so that anyone who clicks it will be redirected to the phone dialer app with your number already filled in: http://your-domain.com/tel/?phone=+12819374192
Hope it helps!
Thank you so much, this was incredibly helpful.