From 8333cdc98c8bf41cebcb0e84cdbb66651d433d0e Mon Sep 17 00:00:00 2001 From: Sebastiano Date: Fri, 20 Sep 2024 17:49:32 +0200 Subject: [PATCH] chore: add analytics --- docusaurus.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index dd264b1..e3bace3 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -159,6 +159,14 @@ const config: Config = { theme: prismThemes.github, darkTheme: prismThemes.dracula, }, + clientModules: ['./simpleanalytics.js'], + scripts: [ + { + url: "https://scripts.simpleanalyticscdn.com/latest.js", + defer: true, + async: true, + }, + ] } satisfies Preset.ThemeConfig, };