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