Skip to content

Commit 84ec4d7

Browse files
committed
Fixes Google Analytics 4 integration
Quick fix for Google Analytics 4 integration
1 parent 9110376 commit 84ec4d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tpl/globalfooter.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
{if !empty($GoogleAnalyticsTrackingId)}
1616
<!-- Google tag (gtag.js) - Google Analytics -->
1717
<script async src="https://www.googletagmanager.com/gtag/js?id={$GoogleAnalyticsTrackingId}"></script>
18+
{literal}
1819
<script>
1920
window.dataLayer = window.dataLayer || [];
2021
function gtag(){dataLayer.push(arguments);}
2122
gtag('js', new Date());
23+
{/literal}
2224
gtag('config', '{$GoogleAnalyticsTrackingId}');
2325
</script>
2426
{/if}

0 commit comments

Comments
 (0)