Skip to content

Commit

Permalink
Fixed visibility of the field `Integration > CMP API > Default enviro…
Browse files Browse the repository at this point in the history
…nment` in GTM template
  • Loading branch information
tg666 committed Feb 15, 2024
1 parent d8a674e commit 599633a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions gtm_template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,14 @@ ___TEMPLATE_PARAMETERS___
"name": "cmp_api_default_environment",
"checkboxText": "Default environment",
"simpleValueType": true,
"defaultValue": true
"defaultValue": true,
"enablingConditions": [
{
"paramName": "cmp_api_enabled",
"paramValue": true,
"type": "EQUALS"
}
]
},
{
"type": "TEXT",
Expand Down Expand Up @@ -2017,7 +2024,7 @@ setInWindow('cc_wrapper_config', {
url: data.cmp_api_enabled ? data.cmp_api_host : null,
project: data.cmp_api_enabled && data.cmp_api_project ? data.cmp_api_project : null,
version: data.cmp_api_enabled ? data.cmp_api_version : 1,
environment: data.cmp_api_default_environment ? null : data.cmp_api_environment_code,
environment: data.cmp_api_enabled ? (data.cmp_api_default_environment ? null : data.cmp_api_environment_code) : null,
consent_api_enabled: data.cmp_api_enabled ? data.cmp_api_consent_api_enabled : false,
cookies_api_enabled: data.cmp_api_enabled ? data.cmp_api_cookies_api_enabled : false,
cookie_table_headers: cookieTableHeaders
Expand Down

0 comments on commit 599633a

Please sign in to comment.