2019-06-08 17:33:34 -04:00
|
|
|
<% if(typeof GA !== 'undefined' && GA && !dnt) { %>
|
2018-03-30 10:33:32 -04:00
|
|
|
<script nonce="<%= cspNonce %>">
|
2016-06-21 09:42:03 -04: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 10:33:32 -04:00
|
|
|
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
2016-06-21 09:42:03 -04:00
|
|
|
|
2016-11-26 09:55:31 -05:00
|
|
|
ga('create', '<%= GA %>', 'auto');
|
2016-06-21 09:42:03 -04:00
|
|
|
ga('send', 'pageview');
|
|
|
|
</script>
|
2018-03-30 10:33:32 -04:00
|
|
|
<% } %>
|