Chatwik
Website Live Chat

Gatsby Integration

Learn how to integrate the Chatwik live chat widget into your Gatsby website.

If you have a website created on Gatsby, you can add a Chatwik live chat widget and talk to your visitors in real time. This can be done in 3 simple steps using Chatwik's Gatsby plugin.


Installation & Setup

Add the Gatsby Plugin to Your Project

Install gatsby-plugin-chatwik in your Gatsby project:

npm install --save gatsby-plugin-chatwik

Add the Plugin to Your Gatsby Config File

Add the plugin configuration to your gatsby-config.js file:

gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-chatwik`,
      options: {
        baseUrl: "https://app.chatwik.com", // Required
        websiteToken: "YOUR_WEBSITE_TOKEN", // Required
        includeInDevelopment: false, // Optional
        chatwootSettings: {}, // Optional
      },
    },
  ],
};

You can get your website token and base URL from your inbox settings in your Chatwik account (SettingsInboxes → select website inbox → Configuration tab). If you need to create a new website inbox, refer to the Website Live Chat Setup guide.

Start Your Server & Verify

Start your Gatsby development server or publish your site to see the Chatwik live chat widget live on your page:

Terminal
gatsby develop

On this page