How to install live chat on a Gatsby website?
If you have a website created on Gatsby, you can add a StrataBlue Support live chat widget and talk to your visitors in real time. This can be done in 3 simple steps using StrataBlue Support’s Gatsby plugin.
Step 1. Add the Gatsby plugin to your project
Section titled “Step 1. Add the Gatsby plugin to your project”Add gatsby-plugin-chatwoot to your Gatsby project.
npm install --save gatsby-plugin-chatwootIf you are using yarn, use the following:
yarn add gatsby-plugin-chatwootStep 2. Add the plugin to your Gatsby config file
Section titled “Step 2. Add the plugin to your Gatsby config file”// In your gatsby-config.jsplugins: [ { resolve: `gatsby-plugin-chatwoot`, options: { baseUrl: "BASE_URL", // Required websiteToken: "WEBSITE_TOKEN", // Required includeInDevelopment: false, // Optional chatwootSettings: {}, // Optional }, },];You can get your Website token and base URL from your Inbox settings in your StrataBlue Support account.
If you need to create a new website channel, follow the procedure illustrated here.
Step 3. Start your server
Section titled “Step 3. Start your server”You would be able to see the StrataBlue Support widget on the page now.