Skip to content

Commit 99eff03

Browse files
committed
feat: add ga4
Signed-off-by: Ashing Zheng <axingfly@gmail.com>
1 parent 7dd9948 commit 99eff03

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

book/theme/index.hbs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@
7474
<!-- MathJax -->
7575
<script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
7676
{{/if}}
77+
78+
<!-- Google tag (gtag.js) -->
79+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YSTSJQMB6T"></script>
80+
<script>
81+
window.dataLayer = window.dataLayer || [];
82+
function gtag(){dataLayer.push(arguments);}
83+
gtag('js', new Date());
84+
85+
gtag('config', 'G-YSTSJQMB6T');
86+
</script>
7787
</head>
7888
<body>
7989
<!-- Provide site root to javascript -->

0 commit comments

Comments
 (0)