Gatsby plugin for Amplitude.
yarn add gatsby-plugin-amplitude
// In your gatsby-config.js
plugins: [
{
resolve: 'gatsby-plugin-amplitude',
options: {
apiKey: 'YOUR-API-KEY',
enableOnDevMode: true // if 'false', will be fired on NODE_ENV=production only
},
},
],