Analytics/Tracking

* drag the tracking object a decade into the future
This commit is contained in:
Sarjuuk 2025-12-12 18:30:37 +01:00
parent a90d1d242a
commit 92f949b3c6
14 changed files with 293 additions and 166 deletions

View file

@ -30,13 +30,9 @@ endif;
?>
</script>
<?php if ($this->analyticsTag): ?>
<script async src="https://www.googletagmanager.com/gtag/js?id=<?=$this->analyticsTag; ?>"></script>
<?php if ($this->hasAnalytics): ?>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '<?=$this->analyticsTag; ?>');
$WH.Track.gaInit();
</script>
<?php
endif;