How to add a WhatsApp Chat floating button on website?

Just add the given code below and replace & customize the data as per your requirements.

var url = '';
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = url;
var options = {
"brandSubTitle":"How can I help you?",
"welcomeText":"Hi there!\nHow can I help you?",
"messageText":"Hello, I have a question about {{page_link}}",
"ctaText":"Start Chat",
s.onload = function() {
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);

Did you find this article useful?