2019-06-08 21:33:34 +00:00
|
|
|
<% if(typeof GA !== 'undefined' && GA && !dnt) { %>
|
2018-03-30 14:33:32 +00:00
|
|
|
<script nonce="<%= cspNonce %>">
|
2016-06-21 13:42:03 +00:00
|
|
|
(function (i, s, o, g, r, a, m) {
|
|
|
|
i['GoogleAnalyticsObject'] = r;
|
|
|
|
i[r] = i[r] || function () {
|
|
|
|
(i[r].q = i[r].q || []).push(arguments)
|
|
|
|
}, i[r].l = 1 * new Date();
|
|
|
|
a = s.createElement(o),
|
|
|
|
m = s.getElementsByTagName(o)[0];
|
|
|
|
a.async = 1;
|
|
|
|
a.src = g;
|
|
|
|
m.parentNode.insertBefore(a, m)
|
2018-03-30 14:33:32 +00:00
|
|
|
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
2016-06-21 13:42:03 +00:00
|
|
|
|
2016-11-26 14:55:31 +00:00
|
|
|
ga('create', '<%= GA %>', 'auto');
|
2016-06-21 13:42:03 +00:00
|
|
|
ga('send', 'pageview');
|
|
|
|
</script>
|
2018-03-30 14:33:32 +00:00
|
|
|
<% } %>
|