Skip to content

Commit 105875e

Browse files
committed
Add Google Analytics code for knowing the statistic of site
1 parent b00b077 commit 105875e

File tree

1 file changed

+9
-0
lines changed
  • themes/book/layouts/partials/docs/inject

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- Global site tag (gtag.js) - Google Analytics -->
2+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151884174-1"></script>
3+
<script>
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
7+
8+
gtag('config', 'UA-151884174-1');
9+
</script>

0 commit comments

Comments
 (0)