| 1 | {{- with site.Config.Services.GoogleAnalytics.ID -}} |
| 2 | <script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script> |
| 3 | <script> |
| 4 | window.dataLayer = window.dataLayer || []; |
| 5 | function gtag() { dataLayer.push(arguments); } |
| 6 | gtag('js', new Date()); |
| 7 | gtag('config', '{{ . }}'); |
| 8 | </script> |
| 9 | {{- end -}} |