See what's launched

The next gen Gatsby is here Performance, developer velocity, and scaling to meet Enterprise needs - See what’s launched

Sign Up for Free
Community Plugin
View plugin on GitHub

Gatsby Plugin for Snap Engage

Easily add Snap Engage Chat to your Gatsby site.

Install

Using NPM

npm install --save gatsby-plugin-snap-engage

Using Yarn

yarn add gatsby-plugin-snap-engage

How to use

// In your gatsby-config.js

// Simple setup
plugins: [
  {
      resolve: `gatsby-plugin-snap-engage`,
      options: {
        multilingual: false,
        id: 'YOUR_SNAP_ENGAGE_SCRIPT_ID',
        includeInDevelopment: false,
      },
    },
];

// Multilingual setup
plugins: [
  {
      resolve: `gatsby-plugin-snap-engage`,
      options: {
        multilingual: true,
        defaultLocale: 'en',
        locales: {
          'en': 'YOUR_SNAP_ENGAGE_SCRIPT_ID_FOR_LOCALE',
          'fr': 'YOUR_SNAP_ENGAGE_SCRIPT_ID_FOR_LOCALE'
        },
        includeInDevelopment: false,
      },
    },
];
© 2022 Gatsby, Inc.