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
plugins
array in yourdocusaurus.config.js
:
plugins:[
"@jsplumb/docusaurus-plugin-statcounter",
],
- Add a
statCounter
entry to thethemeConfig
section of yourdocusaurus.config.js
:
themeConfig: {
statCounter:{
projectId:"PROJECT ID",
securityCode:"SECURITY CODE"
},
}
projectId
and securityCode
are available in the Statcounter console.