chore: add google analytics.

This commit is contained in:
小弟调调
2025-07-11 02:39:37 +08:00
parent 899d85223d
commit 3c5578a2f3
3 changed files with 11 additions and 1 deletions

View File

@@ -24,6 +24,7 @@
{ "rel": "apple-touch-icon", "sizes": "167x167", "href": "{{RELATIVE_PATH}}icons/touch-icon-ipad-retina.png" }, { "rel": "apple-touch-icon", "sizes": "167x167", "href": "{{RELATIVE_PATH}}icons/touch-icon-ipad-retina.png" },
{ "rel": "apple-touch-icon", "sizes": "120x120", "href": "{{RELATIVE_PATH}}icons/touch-icon-iphone-retina.png" } { "rel": "apple-touch-icon", "sizes": "120x120", "href": "{{RELATIVE_PATH}}icons/touch-icon-iphone-retina.png" }
], ],
"analyticsId": "G-9MWEWXSDQK",
"giscus": { "giscus": {
"src": "https://giscus.app/client.js", "src": "https://giscus.app/client.js",
"data-repo": "jaywcjlove/reference", "data-repo": "jaywcjlove/reference",

View File

@@ -686,3 +686,12 @@ $ open dist/index.html # 在浏览器打开生成 HTML
MIT © [Kenny Wong](https://github.com/jaywcjlove) MIT © [Kenny Wong](https://github.com/jaywcjlove)
<!--rehype:ignore:end--> <!--rehype:ignore:end-->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9MWEWXSDQK"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-9MWEWXSDQK');
</script>

View File

@@ -36,7 +36,7 @@
"markdownlint": "^0.33.0", "markdownlint": "^0.33.0",
"markdownlint-cli": "^0.39.0", "markdownlint-cli": "^0.39.0",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"refs-cli": "^1.8.0" "refs-cli": "^1.9.0"
}, },
"engines": { "engines": {
"node": ">=16.0.0" "node": ">=16.0.0"