Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub


Easily add Baidu Analytics to your Gatsby site.


npm install --save gatsby-plugin-baidu-analytics

How to use in gatsby

// gatsby-config.js
plugins: [
    resolve: `gatsby-plugin-baidu-analytics`,
    options: {
	    // baidu analytics siteId
      // Put analytics script in the head instead of the body [default:false]
      head: false,

How to get the siteId

get the siteId screen shoot

© 2023 Gatsby, Inc.