We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 781fd8e commit 341f576Copy full SHA for 341f576
layout/_partials/plugins/analytics.ejs
@@ -15,7 +15,7 @@
15
</script>
16
<% } %>
17
18
- <% if (theme.web_analytics.google){ %>
+ <% if (theme.web_analytics.google && theme.web_analytics.google.measurement_id){ %>
19
<!-- Google tag (gtag.js) -->
20
<script async>
21
if (!Fluid.ctx.dnt) {
@@ -25,7 +25,7 @@
25
dataLayer.push(arguments);
26
}
27
gtag('js', new Date());
28
- gtag('config', '<%- theme.web_analytics.google.measurement_id %>');
+ gtag('config', '<%= theme.web_analytics.google.measurement_id %>');
29
});
30
31
0 commit comments