Add google analytics for docs

This commit is contained in:
crazywhalecc 2025-11-04 09:45:25 +08:00
parent ae15d6c5f5
commit 1a6c044ee9
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
2 changed files with 16 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import sidebarEn from "./sidebar.en";
import sidebarZh from "./sidebar.zh";
import sidebarJa from "./sidebar.ja";
// https://vitepress.dev/reference/site-config
@ -61,5 +62,19 @@ export default {
indexName: 'static-php docs',
},
},
}
},
head: [
[
'script',
{ async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-0MBJ29BD7F' }
],
[
'script',
{},
`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-0MBJ29BD7F');`
]
]
}

BIN
docs/public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB