How to Add a WhatsApp Chat Widget (Button) to Your Shopify Store?

Add A WhatsApp Chat Button To Your Shopify Website

In this guide, you’ll learn step by step how to integrate the Authkey WhatsApp Chat Widget into your Shopify Store website.

Prerequisites

Before you begin, please ensure you have the following:

  1. Authkey Account
    Create your free account at Authkey Signup.
  2. WhatsApp Business API
    The Authkey WhatsApp Chat Widget works only on the official WhatsApp Business API.
  3. A Website
    You need access to your website’s code where the widget code will be placed.

Step-by-Step Guide

1. Sign in to Your Authkey Account

  • Go to your dashboard.
  • Navigate to: Chat Management → WhatsApp Widget → Create Widget.
Create WhatsApp Chat Button in Authkey Dashboard

2. Customize Your Widget

To make your WhatsApp Chat Widget match your brand, fill in the following fields:

Customize WhatsApp Chat Button in Authkey Dashboard
  1. WhatsApp Number
    Enter the registered WhatsApp Business API number.
  2. Display Name
    Add your business name (e.g., Authkey Support or XYZ Store). This will be shown to users on the widget.
  3. Logo Upload
    Upload your company logo to make the widget look authentic and branded.
  4. Background Color
    Select a color that matches your website’s theme or brand identity.
  5. Select Template
    Choose a predefined widget style or template for a ready-made layout.
  6. Open Widget by Default?: Yes or No
    Decide whether the widget should be open automatically when someone visits your website.
  7. Welcome Text
    Add a friendly greeting or call-to-action (e.g., “Hi Need help? Chat with us on WhatsApp!”).
  8. Position
    Select where the widget will appear on your website: bottom right or bottom left.
  9. Margin Bottom / Right
    Adjust the spacing from the screen edge to fit well with your site’s layout.

Once all fields are filled, click “Create Widget” to generate the Code.

3. Embed the Widget Code on Shopify Website. 

Copy the Generated Code by clicking on the “copy” button.

WhatsApp Chat Code generated in Authkey Dashboard.

Adding WhatsApp Chat Button to Shopify

Access Your Shopify Theme
Log in to your Shopify admin panel. Navigate to Sales Channels → Online Store → Themes.

login into Shopify Website

Open Theme Code Editor

Next to the Customize button, click the [⋯] three-dot menu and select Edit Code.

Open Theme Code Editor for Shopify Website

It will open the Shopify theme editor.

In the code editor, go to Layout → theme.liquid.
This file controls the structure of your entire store. So we will put WhatsApp button code here, which will apply to every webpage of Shopify Store.

Code Editor theme.liquid in Shopify Admin Panel- Adding WhatsApp Chat button

Please paste the Widget copied code here. Before the </body> tag inside the theme.liquid file.

WhatsApp Chat Button code position in theme.liquid for Shopify Website.

Click Save to update your theme.
That’s it! You’ve successfully added the WhatsApp Chat Button to your Shopify store, and it will now appear across your entire site.

A Shopify website showing the WhatsApp Chat Button.