Skip to content

Commit 62bc596

Browse files
authored
chore: add umami tracking (#148)
1 parent c71e040 commit 62bc596

File tree

3 files changed

+136
-1
lines changed

3 files changed

+136
-1
lines changed

docusaurus.config.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,18 @@ async function createConfig() {
5252
// For GitHub pages deployment, it is often '/<projectName>/'
5353
baseUrl: '/',
5454

55-
plugins: [demoLoaderPlugin],
55+
plugins: [
56+
demoLoaderPlugin,
57+
[
58+
'@dipakparmar/docusaurus-plugin-umami',
59+
/** @type {import('@dipakparmar/docusaurus-plugin-umami').Options} */
60+
({
61+
websiteID: '40a43007-421b-4e66-bd35-b333727a09d3',
62+
analyticsDomain: 'umami.zakodium.com',
63+
dataDomains: 'docs.image-js.org', // Comma-separated list of domains
64+
}),
65+
],
66+
],
5667

5768
onBrokenLinks: 'throw',
5869
onBrokenMarkdownLinks: 'warn',

package-lock.json

Lines changed: 123 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"write-translations": "docusaurus write-translations"
2121
},
2222
"dependencies": {
23+
"@dipakparmar/docusaurus-plugin-umami": "^2.3.0",
2324
"@docusaurus/core": "^3.8.1",
2425
"@docusaurus/preset-classic": "^3.8.1",
2526
"@docusaurus/theme-common": "^3.8.1",

0 commit comments

Comments
 (0)