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