Skip to content

Commit 8d9b545

Browse files
committed
chore: add google-analytics.html
1 parent bab1aff commit 8d9b545

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

_includes/google-analytics.html

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

0 commit comments

Comments
 (0)