web/_includes/google-analytics.html

17 lines
475 B
HTML
Raw Normal View History

2019-09-30 15:38:41 +03:00
<!--
The GA snippet
2020-01-02 16:17:49 +03:00
v2.0
https://github.com/cotes2020/jekyll-theme-chirpy
2019-09-30 15:38:41 +03:00
© 2017-2019 Cotes Chung
MIT License
-->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics.id }}"></script>
2019-09-30 15:38:41 +03:00
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ site.google_analytics.id }}');
2019-09-30 15:38:41 +03:00
</script>