Giter Site home page Giter Site logo

gatsby-plugin-intercom-spa's Introduction

gatsby-plugin-intercom-spa

Easily add Intercom to your Gatsby site.

Install

npm install --save gatsby-plugin-intercom-spa

How to use

// 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,
    }
  }
]

Configuration

  • app_id - Required. Your Intercom application ID
  • include_in_development - Optional. Defaults to false
  • delay_timeout - Optional. Number of milliseconds to wait before loading the Intercom widget. Defaults to 0
  • hide_default_launcher - Optional. Hide the launcher icon on load. Defaults to false

gatsby-plugin-intercom-spa's People

Contributors

berzniz avatar connorpower avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gatsby-plugin-intercom-spa's Issues

How can I add new options?

Hi! I am still trying but I don't know if it's possible.

  {
      resolve: 'gatsby-plugin-intercom-spa',
      options: {
        app_id: 'xxxxxx',
        include_in_development: true,
       hello: "world"
      }

A cookie associated with a cross-site resource at https://intercom.io/ was set without the `SameSite` attribute.

Getting this console error:

A cookie associated with a cross-site resource at https://intercom.io/ was set without the SameSiteattribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set withSameSite=NoneandSecure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.

"gatsby-plugin-intercom-spa": "^0.2.0",

Question: Does this support Javascript API attributes?

I tried adding the background_color attribute from this documentation, but it didn't seem to change our messenger background color.
Does this package currently support that?

Here is my config btw:

{
    resolve: 'gatsby-plugin-intercom-spa',
    options: {
      app_id: 'foobar',
      include_in_development: true,
      delay_timeout: 1000,
      background_color: '#EBC853'
    }
}

This is now supposed to work in dev also?

I followed the instructions and am not able to see Intercom in my site in development on localhost. I am able to see it in devtools when I inspect, but it never renders on the page. I have tried in Chrome, Firefox, and Edge. Am i just supposed to follow the instructions on the readme for the install and gatsby-config.js, or is there something else I am missing?

Cant make it work :(

Hi guys!

I just installed it and added it to my gatsby-config.js but I can't see the intercom bot on my app. Am I missing something else? Do I need to add it to some other files?

Thanks!
Nico

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.