Add Splitbee to your Gatsby.js site

If you are using Gatsby.js you can use the gatsby-plugin-splitbee plugin for an even easier setup.

First, install the gatsby plugin to your project.

npm install gatsby-plugin-splitbee --save

After installing, add the following configuration to your gatsby-config.js

plugins: [
resolve: `gatsby-plugin-splitbee`,
options: {
includeInDevelopment: false,
delayTimeout: 0

All set. For even better insights, we recommend using event tracking.

Note that traffic will only show up in the dashboard when it comes from the configured domain.