Analytics/Tracking
* drag the tracking object a decade into the future
This commit is contained in:
parent
a90d1d242a
commit
92f949b3c6
14 changed files with 293 additions and 166 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue