Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Gatsby's Intercom plugin to integrate Intercom

I've tried both https://github.com/toriihq/gatsby-plugin-intercom-spa and https://github.com/search?q=gatsby-plugin-intercom to try to integrate Intercom but have been unsuccessful.

The README for both these plugins state that I merely have to install the plugin via npm (in my case I use yarn add) and then update gatsby-config.js with the relevant code snippet (and use my Intercom app_id).

Are there other steps that need to be taken care of?

like image 260
Raunaq Avatar asked Mar 21 '26 22:03

Raunaq


1 Answers

Looking at the source of the https://github.com/toriihq/gatsby-plugin-intercom-spa plugin, it only shows up the intercom UI when process.env.NODE_ENV === 'production.

Possibly, you were expecting it to load locally in your development environnment?

like image 199
Michał Czapliński Avatar answered Mar 23 '26 21:03

Michał Czapliński



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!