Easily add Parse.ly Analytics to your Gatsby site.
npm install --save gatsby-plugin-parsely-analytics
Or
yarn add gatsby-plugin-parsely-analytics
In your gatsby-config.js
file, modify the plugins
array:
plugins: [
{
resolve: `gatsby-plugin-parsely-analytics`,
options: {
apikey: YOUR_PARSELY_APIKEY,
enableInDevelopment: false // send page views when NODE_ENV !== prod
}
}
];