Skip to content

Commit 20e2b8c

Browse files
Merge pull request #21 from riscv/patch-17-analytics
Add google Analytics
2 parents 92e70b8 + 8711804 commit 20e2b8c

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

antora/antora-playbook.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
site:
22
title: RISC-V Ratified Specifications Library
3-
#url: https://docs.riscv.org
3+
# url: https://developer.riscv.org
4+
keys:
5+
google_analytics: 'GTM-NXLCGZF4'
6+
7+
48

59
output:
610
dir: ./build/docs/reference

docusaurus.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ const config: Config = {
6767
theme: {
6868
customCss: './src/css/custom.css',
6969
},
70+
googleTagManager: {
71+
containerId: 'GTM-NXLCGZF4',
72+
},
7073
} satisfies Preset.Options,
7174
],
7275
],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
},
1717
"dependencies": {
1818
"@docusaurus/core": "3.7.0",
19+
"@docusaurus/plugin-google-tag-manager": "^3.8.1",
1920
"@docusaurus/preset-classic": "3.7.0",
2021
"@fontsource/open-sans": "^5.2.5",
2122
"@fortawesome/fontawesome-svg-core": "^6.7.2",

0 commit comments

Comments
 (0)