1.0.0 • Published 4 years ago

gatsby-plugin-meeshkan-recorder v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

gatsby-plugin-meeshkan-recorder

Add the Meeshkan Recorder script to any Gatsby website

Install

npm install --save gatsby-meeshkan-recorder

Usage

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-meeshkan-recorder`,
      options: {
        // Your Meeshkan Recorder Client ID
        clientId: `xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx`,
      },
    },
  ],
};

Development

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.

Credits

License

MIT