daux.io/templates/partials/google_analytics.php

7 lignes
263 B
PHP

<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', '<?= $analytics ?>', '<?= $host ?>');
ga('send', 'pageview');
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>