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