Skip to content

Commit

Permalink
chore: stats
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ma committed Sep 25, 2024
1 parent f881ef5 commit d40d622
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// https://vitepress.dev/guide/custom-theme
import { h } from 'vue';
import DefaultTheme from 'vitepress/theme';
import matomo from '@datagouv/vitepress-plugin-matomo';
import './style.css';

/** @type {import('vitepress').Theme} */
Expand All @@ -12,6 +13,10 @@ export default {
})
},
enhanceApp({ app, router, siteData }) {
// ...
matomo({
router: router,
siteID: 22,
trackerUrl: 'https://stats.ircam.fr/',
});
},
};
9 changes: 9 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"devDependencies": {
"postcss": "^8.4.31",
"vitepress": "^1.0.0-rc.44"
},
"dependencies": {
"@datagouv/vitepress-plugin-matomo": "^1.0.5"
}
}

0 comments on commit d40d622

Please sign in to comment.