xref: /webtrees/resources/views/modules/statcounter/snippet.phtml (revision d9efec4aaa9aefd6a527c75c15e437b9a1a6604c)
1<script>
2    var sc_project=<?= json_encode((int) ($STATCOUNTER_PROJECT_ID ?? ''), JSON_THROW_ON_ERROR) ?>;
3    var sc_invisible=1;
4    var sc_security=<?= json_encode($STATCOUNTER_SECURITY_ID ?? '', JSON_THROW_ON_ERROR) ?>;
5    var sc_https=1;
6    var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www.");
7    document.write("<sc"+"ript type='text/javascript' async src='" + scJsHost + "statcounter.com/counter/counter_xhtml.js'></"+"script>");
8</script>
9
10