Install Simple Analytics with Gridsome edit

Install our Gridsome package:

npm install gridsome-plugin-simple-analytics

Usage

module.exports = {
  plugins: [
    {
      use: "gridsome-plugin-simple-analytics",
    },
  ],
};

Bypass Ad Blockers

You can also optionally specify a custom domain to bypass ad blockers. Read more about this in our documentation.

module.exports = {
  plugins: [
    {
      use: "gridsome-plugin-simple-analytics",
      options: {
        domain: "api.example.com",
      },
    },
  ],
};