A docusaurus plugin offering integration with StatCounter
This plugin is for v2 of Docusaurus
npm i @jsplumb/docusaurus-plugin-statcounter- Add the plugin to the
pluginsarray in yourdocusaurus.config.js:
plugins:[
"@jsplumb/docusaurus-plugin-statcounter",
],- Add a
statCounterentry to thethemeConfigsection of yourdocusaurus.config.js:
themeConfig: {
statCounter:{
projectId:"PROJECT ID",
securityCode:"SECURITY CODE"
},
}projectId and securityCode are available in the Statcounter console.