Gatsby plugin to add intercom onto a site
npm install gatsby-plugin-intercom-spaEasily add Intercom to your Gatsby site.
npm install --save gatsby-plugin-intercom-spa``javascript`
// In your gatsby-config.js
plugins: [
{
resolve: 'gatsby-plugin-intercom-spa',
options: {
app_id: 'YOUR_INTERCOM_APP_ID',
include_in_development: true,
delay_timeout: 0,
hide_default_launcher: false,
}
}
]
- app_id - Required. Your Intercom application IDinclude_in_development
- - Optional. Defaults to falsedelay_timeout
- - Optional. Number of milliseconds to wait before loading the Intercom widget. Defaults to 0hide_default_launcher
- - Optional. Hide the launcher icon on load. Defaults to false`