web/_includes/google-analytics.html

15 lines
454 B
HTML
Raw Normal View History

2019-09-30 15:38:41 +03:00
<!--
The GA snippet
-->
<!-- Global site tag (gtag.js) - Google Analytics -->
2020-12-10 18:57:00 +03:00
<script defer src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics.id }}"></script>
2019-09-30 15:38:41 +03:00
<script>
2020-12-10 18:57:00 +03:00
document.addEventListener("DOMContentLoaded", function(event) {
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>