xref: /webtrees/resources/views/modules/google-analytics/snippet.phtml (revision 29a51599e39417638370fe4c2c4d77201726c9ff)
1<script async src="https://www.google-analytics.com/analytics.js"></script>
2<script>
3    window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};
4    ga.l=+new Date;
5    ga("create", "<?=  e($GOOGLE_ANALYTICS_ID ?? '') ?>", "auto");
6    ga("send", "pageview", <?= json_encode($dimensions) ?>);
7</script>
8