blob: 209eafb4c3b4a143d2ad3d26ebe8a69f33d71d65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<% if (theme.google_analytics.enable){ %>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= theme.google_analytics.siteid %>"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '<%= theme.google_analytics.siteid %>');
</script>
<% } %>
|