diff options
Diffstat (limited to 'resources/views/modules/statcounter/snippet.phtml')
| -rw-r--r-- | resources/views/modules/statcounter/snippet.phtml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/resources/views/modules/statcounter/snippet.phtml b/resources/views/modules/statcounter/snippet.phtml new file mode 100644 index 0000000000..13dfa49009 --- /dev/null +++ b/resources/views/modules/statcounter/snippet.phtml @@ -0,0 +1,9 @@ +<script> + var sc_project=<?= json_encode((int) ($STATCOUNTER_PROJECT_ID ?? '')) ?>; + var sc_invisible=1; + var sc_security=<?= json_encode($STATCOUNTER_SECURITY_ID ?? '') ?>; + var sc_https=1; + var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www."); + document.write("<sc"+"ript type='text/javascript' async src='" + scJsHost + "statcounter.com/counter/counter_xhtml.js'></"+"script>"); +</script> + |
