Add the WhatsApp button to your website

One line of code puts a WhatsApp button on your site. A visitor who presses it opens a chat with your number, and the agent answers.

Time
About 5 minutes
Cost
Free.
You need
  • Your connected business WhatsApp number.
  • Access to edit your website, or the person who maintains it.
  1. Step 1

    Open Connections and find the button card

    In the side menu open Connections. At the bottom is “WhatsApp button for your website”. Check the Business WhatsApp number, write the Message prefilled when the chat opens, and choose the Button language.

    Detoximex

    WhatsApp button for your website

    Business WhatsApp number+1 555 010 0000
    Message prefilled when the chat opensHello, I have a question
    Copy
    Drawn from the Detoximex screen, with the labels the app shows.
  2. Step 2

    Press Copy, then Try the link

    Copy takes the ready line. Try the link opens the same WhatsApp chat a visitor would get, so you can see the prefilled message before touching your site.

  3. Step 3

    Paste the line before </body> on your site

    Paste it once, just before the closing </body> tag, on every page that should show the button. Site builders usually have a place for this named something like “custom code” or “footer code”; if you do not manage the site, send the line to the person who does.

  4. Step 4

    Open your site and press the button

    Reload a page of your site, press the button and send the message. The agent's reply should arrive in WhatsApp, and the conversation appears in your Inbox.

When it is done you will see

  • The button shows on your site and opens a chat with your business number.
  • The first message from the site gets the agent's reply.

Common mistakes and how to fix them

What you seeWhyFix
No line appears to copyWhyThe number is not valid. The card asks for a WhatsApp number of 8 to 15 digits.FixEnter the number with its country code and no spaces or symbols other than +.
The button does not show on the siteWhyThe line was pasted in a text block instead of a code area, or the site's cache still serves the old page.FixPaste it in the site's code area before </body>, publish, and reload the page.
The button opens a chat with the wrong numberWhyThe line was copied before the number was corrected.FixCorrect the number on the card, press Copy again and replace the line on your site.

Still stuck? Write to support@detoximex.com with a screenshot of what you see.