Skip to content

Commit

Permalink
feat: add matomo plugin (#1769)
Browse files Browse the repository at this point in the history
  • Loading branch information
kittybest authored Aug 14, 2024
1 parent 9e771a0 commit 5ed30d3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
7 changes: 7 additions & 0 deletions apps/website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ async function getConfig(): Promise<Config> {
},
],
"docusaurus-plugin-image-zoom",
"docusaurus-plugin-matomo",
],
stylesheets: [
{
Expand Down Expand Up @@ -186,6 +187,12 @@ async function getConfig(): Promise<Config> {
copyright: `Copyright © ${new Date().getFullYear().toString()} Privacy and Scaling Explorations`,
},
zoom: {},
matomo: {
matomoUrl: "https://psedev.matomo.cloud/",
siteId: "18",
phpLoader: "matomo.php",
jsLoader: "matomo.js",
},
} satisfies Preset.ThemeConfig,
};

Expand Down
3 changes: 2 additions & 1 deletion apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rehype-katex": "^7.0.0",
"remark-math": "^6.0.0"
"remark-math": "^6.0.0",
"docusaurus-plugin-matomo": "^0.0.8"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.5.1",
Expand Down
13 changes: 13 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5ed30d3

Please sign in to comment.