Skip to content

Commit feb0bc1

Browse files
committed
added google analytics
1 parent fb58710 commit feb0bc1

2 files changed

Lines changed: 23 additions & 3 deletions

File tree

docs/.vitepress/cache/deps/_metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"vue": {
88
"src": "../../../node_modules/vue/dist/vue.runtime.esm-bundler.js",
99
"file": "vue.js",
10-
"fileHash": "c84a673d",
10+
"fileHash": "332bface",
1111
"needsInterop": false
1212
},
1313
"vitepress > @vue/devtools-api": {
@@ -19,13 +19,13 @@
1919
"vitepress > @vueuse/core": {
2020
"src": "../../../node_modules/@vueuse/core/index.mjs",
2121
"file": "vitepress___@vueuse_core.js",
22-
"fileHash": "740e98cb",
22+
"fileHash": "36a42d21",
2323
"needsInterop": false
2424
},
2525
"vitepress > @vueuse/integrations/useFocusTrap": {
2626
"src": "../../../node_modules/@vueuse/integrations/useFocusTrap.mjs",
2727
"file": "vitepress___@vueuse_integrations_useFocusTrap.js",
28-
"fileHash": "2c3cc90a",
28+
"fileHash": "9055373c",
2929
"needsInterop": false
3030
},
3131
"vitepress > mark.js/src/vanilla.js": {

docs/.vitepress/config.mts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,26 @@ export default defineConfig({
5555
search: { provider: "local" },
5656
},
5757

58+
head: [
59+
[
60+
"script",
61+
{
62+
src: "https://www.googletagmanager.com/gtag/js?id=G-67G9G0VBCC",
63+
async: "",
64+
},
65+
],
66+
[
67+
"script",
68+
{},
69+
`
70+
window.dataLayer = window.dataLayer || [];
71+
function gtag(){dataLayer.push(arguments);}
72+
gtag('js', new Date());
73+
gtag('config', 'G-67G9G0VBCC');
74+
`,
75+
],
76+
],
77+
5878
transformHtml: (_, id, { pageData }) => {
5979
const file = fs.statSync(path.join(__dirname, "..", pageData.relativePath));
6080
if (!/[\\/]404\.html$/.test(id)) {

0 commit comments

Comments
 (0)