Skip to content

Commit 121b7ec

Browse files
committed
Fix google analytics script
- This was fixed in: jekyll/minima#825; but 'github-pages' gem uses 2.5.1
1 parent 2a7c00b commit 121b7ec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

_includes/google-analytics.html

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

0 commit comments

Comments
 (0)