Gatsby plugin that adds the Crazy Egg tracking script
npm install gatsby-plugin-crazyeggEasily add Crazy Egg to your Gatsby-powered site!
Inside an existing gatsby project, run:
``bash`
yarn add gatsby-plugin-crazyegg
You will need to have your account number ready for configuration.
To access your account number, head over to the Crazy Egg Dashboard.
Go to Account > Your profile, and copy the account number shown.
`javascriptgatsby-plugin-crazyegg
// Inside your gatsby-config.js
plugins: [
{
resolve: ,``
options: {
accountNumber: YOUR_CRAZYEGG_ACCOUNT_NUMBER
}
}
]
The Crazy Egg tracking script will only be included in your production build.