xref: /webtrees/resources/views/modules/google-analytics/snippet.phtml (revision ad7270802ba57a28d195fc58fcc55f26458a779a)
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