Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-plugin-livehelperchat

Add Livehelperchat to your Gatsby site. Based on gatsby-plugin-crisp-chat.

Install

npm install --save gatsby-plugin-crisp-chat

How to use

To integrate Livehelperchat to your Gatsby site, you need to have an account with Livehelperchat. Sign up.

Once you sign up, you will be prompted with ways you can integrate Livehelperchat to your site. Click the HTML option and copy your CRISP_WEBSITE_ID. It should be in this form: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (8-4-4-4-12chars).

If you aren’t new to Crisp, you can get your CRISP_WEBSITE_ID by going to Website Settings > Integrations > HTML.

Upon obtaining your CRISP_WEBSITE_ID, you need to modify your gatsby-config.js as follows:

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: 'gatsby-plugin-crisp-chat',
      options: {
        baseUrl: 'YOUR_LIVEHELPERCHAT_URL',
        enableDuringDevelop: false, // Optional. Disables Crisp Chat during gatsby develop. Defaults to true.
        defer: true, // Optional. Sets the Crisp loading script to defer instead of async. Defaults to false.
        enableImprovedAccessibility: false // Optional. Sets aria-label attribute on pop-up icon for screen readers. Defaults to true.
        widgetSize: [],
        popupSize: [],
        preferredScheme: 'https', //Optional
        domain: [], //Optional, Defaults to empty.
        departments: [], //Optional. Defaults to all departments.
        operators: [], //Optional. Defaults to empty
      },
    }
    'your',
    'other',
    'plugins',
  ],
}

Restart your Gatsby server for the plugin to take effect.

If you have improvements that you’d like to see, or encounter any bugs, feel free to create an issue!

Changelog

See CHANGELOG.md

© 2023 Gatsby, Inc.