Skip to main content
The WhatsApp button puts a floating WhatsApp icon on every page of your site. When a visitor taps it, WhatsApp opens a chat with your number, with a greeting already typed so they only tap send. On a phone it opens the WhatsApp app; on a computer, WhatsApp Web or the desktop app. Use one of your Boom WhatsApp numbers and the chat lands in your Boom inbox, where your agent and your team answer it like any other conversation.
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.
The preview beside the settings shows the button as visitors will see it. Save applies your changes; they reach your site within about 6 minutes.

Install it

The button’s Install card has one tag:
Add it once to every page of your site, before </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, call window.__BOOM_WHATSAPP_DESTROY__(); to show it again, load the tag again.