Skip to content

Commit 07e779d

Browse files
committed
feat: add Simple Analytics script to docusaurus configuration
1 parent eb2d21a commit 07e779d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docusaurus.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ const config = {
3737
onBrokenLinks: 'throw',
3838
onBrokenMarkdownLinks: 'warn',
3939

40+
// Add the Simple Analytics script here
41+
scripts: [
42+
{
43+
src: 'https://scripts.simpleanalyticscdn.com/latest.js',
44+
async: true,
45+
},
46+
],
47+
4048
// Even if you don't use internationalization, you can use this field to set
4149
// useful metadata like html lang. For example, if your site is Chinese, you
4250
// may want to replace "en" with "zh-Hans".

0 commit comments

Comments
 (0)