feat: analytics code rendering

This commit is contained in:
Nick
2019-06-23 22:57:04 -04:00
parent 537551874b
commit 2870da0e9e
21 changed files with 175 additions and 118 deletions

View File

@@ -0,0 +1,10 @@
head: |
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{propertyTrackingId}}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{propertyTrackingId}}');
</script>