diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript
index 77cf2ee0..7aad1ae5 100644
--- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript
+++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript
@@ -186,23 +186,21 @@ page {
headerData.990 = TEXT
headerData.990 {
- wrap =
- value = {$plugin.tx_eptheme.settings.cookieFirstKey}
+ value =
if.isTrue = {$plugin.tx_eptheme.settings.cookieFirstKey}
}
headerData.995 = TEXT
headerData.995 {
- wrap (
+ value (
-
+ })(window,document,'script','dataLayer','{$plugin.tx_eptheme.settings.googleTagManagerId}');
)
- value = {$plugin.tx_eptheme.settings.googleTagManagerId}
if.isTrue = {$plugin.tx_eptheme.settings.googleTagManagerId}
}
}