0.3.2 • Published 2 years ago

gatsby-plugin-cloudflare-web-analytics v0.3.2

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
2 years ago

gatsby-plugin-cloudflare-web-analytics

Add Cloudflare Web Analytics to your Gatsby site.

Not affiliated with or supported by Cloudflare.

Install

To install, run npm i gatsby-plugin-cloudflare-web-analytics in your project directory.

Config

module.exports = {
  plugins: [
    // Add to your gatsby-config.js file.
    {
      resolve: `gatsby-plugin-cloudflare-web-analytics`,
      options: {
        // You need to provide your site token. You get this from the Cloudflare dashboard
        token: YOUR_CF_TOKEN,
         // You can add or overwrite attributes of the analytics script tag (optional)
        attributes: [
          {
            name: ATTRIBUTE_NAME,
            value: ATTRIBUTE_VALUE,
          }
        ],
      },
    },
  ],
}

License

This project is licensed under the BSD 3 Clause license.

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

1.0.0

2 years ago