Properly integrate Cookie First and GTM scripts
This commit is contained in:
@@ -184,8 +184,15 @@ page {
|
||||
}
|
||||
)
|
||||
|
||||
headerData.998 = TEXT
|
||||
headerData.998.value (
|
||||
headerData.990 = TEXT
|
||||
headerData.990 {
|
||||
wrap = <script src="https://consent.cookiefirst.com/banner.js" data-cookiefirst-key="|"></script>
|
||||
value = {$plugin.tx_eptheme.settings.cookieFirstKey}
|
||||
if.isTrue = {$plugin.tx_eptheme.settings.cookieFirstKey}
|
||||
}
|
||||
|
||||
headerData.995 = TEXT
|
||||
headerData.995.value (
|
||||
<!-- Google Tag Manager -->
|
||||
<script type="text/plain" data-cookiefirst-category="functional">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
@@ -195,13 +202,6 @@ page {
|
||||
<!-- End Google Tag Manager -->
|
||||
)
|
||||
headerData.998.stdWrap.if.isTrue = {$plugin.tx_eptheme.settings.googleTagManagerId}
|
||||
|
||||
headerData.999 = TEXT
|
||||
headerData.999 {
|
||||
wrap = <script src="https://consent.cookiefirst.com/banner.js" data-cookiefirst-key="|"></script>
|
||||
value = {$plugin.tx_eptheme.settings.cookieFirstKey}
|
||||
if.isTrue = {$plugin.tx_eptheme.settings.cookieFirstKey}
|
||||
}
|
||||
}
|
||||
|
||||
[page["backend_layout"] == 'pagets__popup']
|
||||
|
||||
Reference in New Issue
Block a user