xref: /webtrees/resources/views/modules/statcounter/snippet.phtml (revision 728c8c2714cc197d45bad7363eb52e0bff3297bb)
18e5c5efeSGreg Roach<script>
2*728c8c27SGreg Roach    var sc_project=<?= json_encode((int) ($STATCOUNTER_PROJECT_ID ?? ''), JSON_THROW_ON_ERROR) ?>;
38e5c5efeSGreg Roach    var sc_invisible=1;
4*728c8c27SGreg Roach    var sc_security=<?= json_encode($STATCOUNTER_SECURITY_ID ?? '', JSON_THROW_ON_ERROR) ?>;
58e5c5efeSGreg Roach    var sc_https=1;
68e5c5efeSGreg Roach    var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www.");
78e5c5efeSGreg Roach    document.write("<sc"+"ript type='text/javascript' async src='" + scJsHost + "statcounter.com/counter/counter_xhtml.js'></"+"script>");
88e5c5efeSGreg Roach</script>
98e5c5efeSGreg Roach
10