See what's launched

The next gen Gatsby is here Performance, developer velocity, and scaling to meet Enterprise needs - See what’s launched

Sign Up for Free
Community Plugin
View plugin on GitHub


Add Cloudflare Web Analytics to your Gatsby site.

Not affiliated with or supported by Cloudflare.


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


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,


This project is licensed under the BSD 3 Clause license.

© 2022 Gatsby, Inc.