From 1bb6bf888bf31f7763dc8c6df9aa606218b21e2e Mon Sep 17 00:00:00 2001 From: juanjoman Date: Mon, 31 Jul 2023 12:33:40 +0100 Subject: [PATCH] add fathom analytics --- website/docusaurus.config.js | 5 ++++- website/package-lock.json | 15 +++++++++++++++ website/package.json | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 3b1b55f..bc785d4 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -49,13 +49,16 @@ const config = { }), ], ], - + plugins: [require.resolve('docusaurus-plugin-fathom')], themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ // Replace with your project's social card image: 'img/logoellmental.png', stylesheets: ['https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap'], + fathomAnalytics: { + siteId: 'BQAENCTO', + }, navbar: { logo: { alt: 'eLLMental Logo', diff --git a/website/package-lock.json b/website/package-lock.json index 049c2c5..3e2e70a 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -12,6 +12,8 @@ "@docusaurus/preset-classic": "2.4.1", "@mdx-js/react": "^1.6.22", "clsx": "^1.2.1", + "docusaurus-plugin-fathom": "^1.1.0", + "fathom-client": "^3.5.0", "prism-react-renderer": "^1.3.5", "react": "^17.0.2", "react-dom": "^17.0.2" @@ -5550,6 +5552,14 @@ "node": ">=6" } }, + "node_modules/docusaurus-plugin-fathom": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/docusaurus-plugin-fathom/-/docusaurus-plugin-fathom-1.1.0.tgz", + "integrity": "sha512-MVMYb2daXLho8Foaxl2ipTCH3RWEmV5plQytGa8tMk3LOiWcZ5S9TcOhcAB9W5b9ZeebyotWYXpTnsLyXgKFgA==", + "peerDependencies": { + "@docusaurus/core": "^2.0.0" + } + }, "node_modules/dom-converter": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", @@ -6044,6 +6054,11 @@ "reusify": "^1.0.4" } }, + "node_modules/fathom-client": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/fathom-client/-/fathom-client-3.5.0.tgz", + "integrity": "sha512-BiRDS9Q9a8Zma0H717FWC5cvf545K/CsxBpxKT22TcSl1EbRhhlHWIJgrdeiQUfdorBK2ppy09TwMOhRsbos/A==" + }, "node_modules/faye-websocket": { "version": "0.11.4", "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", diff --git a/website/package.json b/website/package.json index d468923..069769f 100644 --- a/website/package.json +++ b/website/package.json @@ -17,6 +17,7 @@ "dependencies": { "@docusaurus/core": "2.4.1", "@docusaurus/preset-classic": "2.4.1", + "docusaurus-plugin-fathom": "^1.1.0", "@mdx-js/react": "^1.6.22", "clsx": "^1.2.1", "prism-react-renderer": "^1.3.5",