The WhatsApp button is part of the Lead Capture add-on. If you don’t see
Lead capture → WhatsApp button in the Boom app’s left sidebar, ask your
account manager to turn it on for your organization.
Create a button
In the left sidebar, open Lead capture → WhatsApp button and choose New WhatsApp button. Give it a name, the site it will run on and, if you have it at hand, your WhatsApp number with the country code. New buttons start Paused, so you can set one up without it showing to anyone. On the button’s page you set:- WhatsApp number: the chat the button opens. Your Boom numbers are listed under the field; tap one to use it.
- Pre-typed message: the greeting written into the visitor’s chat, in English, Spanish and Portuguese. Visitors get their language, else English. Leave it blank for an empty chat.
- Label: text beside the icon, such as “Escríbenos”, or icon only.
- Colours: the button and the icon. WhatsApp green and white by default; Boom warns you when the icon would be hard to see.
- Position: bottom right or bottom left, and how far from the edges.
- Show on: all devices, phones only, or computers only.
Install it
The button’s Install card has one tag:</body>. If your store has no
place to paste a script (VTEX Store Framework, for example), add it in Google
Tag Manager as a Custom HTML tag that fires on All Pages, and publish
the container.
Then add your site under Allowed sites (the exact address, such as
https://www.example.com) and set the button Active. The button only loads
on allowed sites: on any other, it stays hidden and says why in the browser’s
console.
To change the number, the greeting or the colours later, edit them in Boom. The
tag never changes, unless you Rotate key, which stops the old tag from
loading until you replace it.
Taps
The Taps card counts visitors who tapped the button: the last 7 days against the 7 before, split by phones and computers, and a bar for each of the last 30 days. Days follow your organization’s time zone. Taps are anonymous: Boom records only that a tap happened and the kind of device. Who tapped shows up only if they send the message, as a conversation in your inbox. A tap is not a message: some visitors open WhatsApp and close it without writing. Your own site can listen for taps too, for example to send them to your analytics:Single-page sites
The button stays on screen as the visitor moves between pages. To remove it on a page of a single-page app, callwindow.__BOOM_WHATSAPP_DESTROY__(); to show
it again, load the tag again.