<!-- Global site tag (gtag.js) - Google Analytics -->
<% if (theme.googleAnalytics.enable) { %>
<script async src="https://www.googletagmanager.com/gtag/js?id=<%- theme.googleAnalytics.id %>"></script>
<script>
    window.dataLayer = window.dataLayer || [];
    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', '<%- theme.googleAnalytics.id %>');
</script>
<% } %>
