diff --git a/src/configurations/destinations/ga4/db-config.json b/src/configurations/destinations/ga4/db-config.json index d5e3588ea..eb1c91f75 100644 --- a/src/configurations/destinations/ga4/db-config.json +++ b/src/configurations/destinations/ga4/db-config.json @@ -19,7 +19,8 @@ "oneTrustCookieCategories", "ketchConsentPurposes", "consentManagement", - "sdkBaseUrl" + "sdkBaseUrl", + "serverContainerUrl" ], "excludeKeys": [], "supportedSourceTypes": [ @@ -70,7 +71,8 @@ "piiPropertiesToIgnore", "oneTrustCookieCategories", "ketchConsentPurposes", - "sdkBaseUrl" + "sdkBaseUrl", + "serverContainerUrl" ], "web": [ "debugView", diff --git a/src/configurations/destinations/ga4/ui-config.json b/src/configurations/destinations/ga4/ui-config.json index 1fd848bcb..777428c4b 100644 --- a/src/configurations/destinations/ga4/ui-config.json +++ b/src/configurations/destinations/ga4/ui-config.json @@ -38,30 +38,6 @@ ], "default": "gtag" }, - { - "type": "textInput", - "preRequisites": { - "fields": [ - { - "configKey": "connectionMode.web", - "value": "device" - }, - { - "configKey": "connectionMode.web", - "value": "hybrid" - } - ], - "condition": "or" - }, - "label": "SDK Base URL", - "configKey": "sdkBaseUrl", - "regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|(?!.*\\.ngrok\\.io)^(?:http(s)?:\\/\\/)?[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:/?#[\\]@!\\$&'\\(\\)\\*\\+,;=.]*|^$", - "regexErrorMessage": "Please input a valid URL.", - "note": "Enter your GA4 SDK base URL, https://{SDK Base URL}/gtag/js. By default, it is https://www.googletagmanager.com.", - "placeholder": "e.g: https://www.example.com", - "default": "https://www.googletagmanager.com", - "secret": false - }, { "type": "textInput", "preRequisites": { @@ -130,8 +106,55 @@ "icon": "settings", "groups": [ { - "title": "GA4 IT", + "title": "GA4 Additional Settings", "fields": [ + { + "type": "textInput", + "preRequisites": { + "fields": [ + { + "configKey": "connectionMode.web", + "value": "device" + }, + { + "configKey": "connectionMode.web", + "value": "hybrid" + } + ], + "condition": "or" + }, + "label": "SDK Base URL", + "configKey": "sdkBaseUrl", + "regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|(?!.*\\.ngrok\\.io)^(?:http(s)?:\\/\\/)?[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:/?#[\\]@!\\$&'\\(\\)\\*\\+,;=.]*|^$", + "regexErrorMessage": "Please input a valid URL.", + "note": "Enter your GA4 SDK base URL, https://{SDK Base URL}/gtag/js. By default, it is https://www.googletagmanager.com.", + "placeholder": "e.g: https://www.example.com", + "default": "https://www.googletagmanager.com", + "secret": false + }, + { + "type": "textInput", + "preRequisites": { + "fields": [ + { + "configKey": "connectionMode.web", + "value": "device" + }, + { + "configKey": "connectionMode.web", + "value": "hybrid" + } + ], + "condition": "or" + }, + "label": "Server Side Container URL", + "configKey": "serverContainerUrl", + "regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|(?!.*\\.ngrok\\.io)^(?:http(s)?:\\/\\/)?[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:/?#[\\]@!\\$&'\\(\\)\\*\\+,;=.]*|^$", + "regexErrorMessage": "Please input a valid URL.", + "note": "Enter your GA4 Server Side Container URL, https://{Server Side Container URL}/gtag/js. By default, it is https://analytics.example.com.", + "placeholder": "e.g: https://analytics.example.com", + "secret": false + }, { "type": "checkbox", "label": "Debug via Validation Server",