Skip to content

Commit 9b599e0

Browse files
committed
chore: add google analytic
1 parent 6e3aa4b commit 9b599e0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,14 @@ <h2 class="hero-intro">一个基于 Github Issue 和 Preact 开发的评论插
127127

128128
gitalk.render('gitalk-container')
129129
</script>
130+
<script>
131+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
132+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
133+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
134+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
135+
136+
ga('create', 'UA-49304532-4', 'auto');
137+
ga('send', 'pageview');
138+
</script>
130139
</body>
131140
</html>

0 commit comments

Comments
 (0)