Skip to content

Add a Floating WhatsApp Button to Wix or Shopify

If your customers already use WhatsApp, a floating chat button in the corner of your website gives them a one-tap way to reach you. You don’t need a developer or the WhatsApp Business API. You need a chat link, a small piece of code, and a place on your site where you can paste it. This guide covers how it works on Wix, Shopify and most other platforms, and what to check once it’s live.

What a floating WhatsApp button actually does

A floating button stays fixed in one corner of the screen while the visitor scrolls. When they tap it, it opens a WhatsApp chat with your number. Behind the button is an ordinary wa.me link, the same kind of link you could put in an email or a social bio.

That means a regular WhatsApp or WhatsApp Business app number is enough. You don’t need special API access, only a number you can already receive messages on.

Step 1: Get your number and message ready

Before you touch your website, decide on three things.

  1. The number, in international format. That means country code first, then the number, with no spaces or dashes. A number written the local way, with a leading zero, is the most common reason a chat link opens the wrong chat or nothing at all.
  2. A pre-filled message. This is the text that appears in the visitor’s message box when the chat opens, for example a short greeting or the name of the product page they were on. It saves the visitor typing and tells you what they want. Keep it short and neutral so they can edit it.
  3. A label. Short text on the button, such as "Chat with us", makes it clear what the button does.

Recommended Hosting

Step 2: Understand the wa.me link

A wa.me link has the form https://wa.me/ followed by your number in international format. To add a pre-filled message, you append ?text= and then your message with spaces and special characters URL-encoded (a space becomes %20, for instance). Test the link in your browser and on your phone before using it anywhere.

You can make a plain link button by hand. The limits are:

  • It isn’t floating unless you write the CSS to pin it to a corner.
  • You have to design the color, size and position yourself.
  • You get no numbers. You won’t know whether anyone clicked it, which pages drive the clicks, or whether visitors on mobile behave differently from those on desktop.

For a quick test that’s fine. If the button matters to your business, you’ll want to see whether it’s earning its place on the page.

Step 3: Find where your platform lets you add code

Whatever the button is built from, it needs to get onto every page. Most website builders have a spot where you can add a script. It’s usually called something like custom code, header or footer code, or theme code. The exact menu names change from time to time, so check your platform’s help pages for the current location.

  • Wix: look for the settings area where custom code or tracking scripts can be added to all pages.
  • Shopify: the theme code editor is where site-wide scripts normally go, so the button appears on every page of the store.
  • WordPress, Squarespace, Webflow or a custom site: each has a site-wide header/footer code area or a way to edit the page template.

The requirement is simple: you must be able to add a script tag to the page HTML. If your plan or platform blocks custom scripts, a script-based button can’t be installed there, and you would need an app or plugin that your platform supports instead.

Doing it in one line of code

If you’d rather not hand-write CSS and encode links, a ready-made tool removes the fiddly parts. Our WhatsApp Chat Button with Click Tracking ($9) works like this:

  1. After your PayPal subscription is confirmed, you land on a page with a private dashboard link. It is also emailed to your PayPal payer email.
  2. In the dashboard you create a button: your number, a pre-filled message, your label, color, size and corner position.
  3. You copy one line of code and paste it into your site, whether that’s WordPress, Shopify, Wix, plain HTML, or any site that allows a script tag.

The button opens a normal wa.me chat, so you don’t need a WhatsApp Business API account. Enter your number in international format and you’re set.

Step 4: Check it before you leave it

After you paste the code and save, run through a short checklist.

  • Open your site on your phone and tap the button. WhatsApp should open with your chosen message ready to send.
  • Open it on a desktop too. Desktop usually opens WhatsApp Web or the desktop app, which behaves a little differently from mobile.
  • Check the corner. Make sure the button doesn’t cover a cookie banner, a checkout button or a "back to top" arrow. If it does, move it to the other corner.
  • Check several page types: the home page, a product page and the checkout or contact page, depending on where you want it.
  • Send yourself a test message from another phone to confirm it arrives in the right inbox.

Step 5: See whether visitors actually use it

Once the button is live, the next question is whether anyone clicks it. This is where many DIY buttons leave you guessing. With the tool above, the dashboard shows:

  • total clicks on the button
  • a daily chart for the last 30 days
  • your top pages by clicks
  • mobile vs desktop clicks
  • how many times the button was loaded, so you can see the click rate

That tells you practical things. If one product page gets most of the clicks, you know where visitors have questions. If clicks are almost all from mobile, you know where to make sure replies are fast. If the button is loaded often but rarely clicked, you can try a different label, color or corner and compare the numbers over the following weeks.

What the numbers can and cannot tell you

Be clear about the limit. The tool counts clicks on the button and how often it was loaded. It cannot see whether the visitor then actually sent a WhatsApp message, because that happens inside WhatsApp. A click means interest, not a confirmed conversation. Compare click counts with the messages you actually receive to get a realistic picture.

Privacy and your own policy

The tool records only the click event, the page address, the device type (mobile or desktop) and the time. It does not store visitor IP addresses or names. Even so, you are responsible for mentioning the button and any tracking in your own privacy policy where the law in your country requires it. Add a short line about it when you publish the button.

If you build sites for clients

Agencies and freelancers often need a different number and message for each client. One subscription includes up to 3 buttons, each with its own number, message, style and statistics, all in a single private dashboard. That can cover, for example, your own site and two client sites.

Cancelling and what happens after

You can cancel any time from your PayPal account. When the subscription ends, the button stops showing on your sites and the dashboard is no longer available. If you only need the button for a campaign or a trial period, that is worth knowing in advance. You’d also want to remove the leftover code from your site afterwards.

Quick summary

  1. Write your number in international format and prepare a short pre-filled message.
  2. Make sure your Wix, Shopify or other platform lets you add a script tag site-wide.
  3. Create the button, copy the code and paste it in.
  4. Test on mobile and desktop, and check the corner position.
  5. Watch clicks, load counts and top pages, then adjust.

If you want the floating button and the click counts without writing CSS or maintaining links, you can set it up with the WhatsApp Chat Button with Click Tracking for $9. It takes one line of code and a few minutes in the dashboard.

Recommended Hosting

Disclosure: some links on this site are affiliate links or our own products; we may earn money at no extra cost to you.