Add the Meeshkan Recorder script to any Gatsby website
npm install --save gatsby-meeshkan-recorder
// In your gatsby-config.js
module.exports = {
plugins: [
{
resolve: `gatsby-meeshkan-recorder`,
options: {
// Your Meeshkan Recorder Client ID
clientId: `xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx`,
},
},
],
};
By default gatsby-plugin-meeshkan-recorder
will only load and run the recorder script when process.env.NODE_ENV === 'production'
.
To enable gtag in development mode set the environment variable GATSBY_MEESHKAN_RECORDER_DEBUG=true gatsby develop
.
- This Gatsby plugin is a fork of
gatsby-plugin-gtag
by flpvsk.
MIT