From 103745a8715b4e450d809812c21a67443473e0c2 Mon Sep 17 00:00:00 2001 From: Sandeep Digumarty Date: Mon, 30 Sep 2024 13:33:22 +0530 Subject: [PATCH] fix(ga4_v2): update ui-config.jt file to reflect consent management changes (#1717) --- .../destinations/ga4_v2/ui-config.json | 6 +- .../destinations/ga4_v2/ui-config.jt | 176 ++++++++++-------- 2 files changed, 99 insertions(+), 83 deletions(-) diff --git a/src/configurations/destinations/ga4_v2/ui-config.json b/src/configurations/destinations/ga4_v2/ui-config.json index 5759521ef..351414323 100644 --- a/src/configurations/destinations/ga4_v2/ui-config.json +++ b/src/configurations/destinations/ga4_v2/ui-config.json @@ -18,7 +18,9 @@ "type": "nestedSelect", "label": "Select Account -> Property -> DataStream -> Protocol Secrets", "apiName": "getGA4ConfigData", - "apiDependencies": ["rudderAccountId"], + "apiDependencies": [ + "rudderAccountId" + ], "placeholder": "Select config details", "preRequisites": { "fields": [ @@ -2175,4 +2177,4 @@ } } } -} +} \ No newline at end of file diff --git a/src/configurations/destinations/ga4_v2/ui-config.jt b/src/configurations/destinations/ga4_v2/ui-config.jt index 301086280..81356ee65 100644 --- a/src/configurations/destinations/ga4_v2/ui-config.jt +++ b/src/configurations/destinations/ga4_v2/ui-config.jt @@ -103,10 +103,51 @@ "preRequisites": { "fields": [ { - "configKey": "connectionModes.cloud", - "value": true + "configKey": "connectionMode.cloud", + "value": "cloud" + }, + { + "configKey": "connectionMode.web", + "value": "cloud" + }, + { + "configKey": "connectionMode.shopify", + "value": "cloud" + }, + { + "configKey": "connectionMode.android", + "value": "cloud" + }, + { + "configKey": "connectionMode.unity", + "value": "cloud" + }, + { + "configKey": "connectionMode.ios", + "value": "cloud" + }, + { + "configKey": "connectionMode.amp", + "value": "cloud" + }, + { + "configKey": "connectionMode.flutter", + "value": "cloud" + }, + { + "configKey": "connectionMode.reactnative", + "value": "cloud" + }, + { + "configKey": "connectionMode.warehouse", + "value": "cloud" + }, + { + "configKey": "connectionMode.cordova", + "value": "cloud" } - ] + ], + "condition": "or" }, "configKey": "debugMode", "default": false @@ -204,84 +245,7 @@ "title": "Consent settings", "note": "Configure consent settings for each provider here", "icon": "settings", - "groups": [ - { - "title": "OneTrust consent settings", - "note": [ - "Enter your OneTrust consent category IDs if you have them configured. The support for category names is deprecated. We recommend using the category IDs instead of the names as IDs are unique and less likely to change over time, making them a more reliable choice.", - { - "text": "Learn more ", - "link": "https://www.rudderstack.com/docs/sources/event-streams/sdks/consent-manager/onetrust/" - }, - "about RudderStack's OneTrust Consent Management feature." - ], - "fields": [ - { - "type": "tagInput", - "label": "Consent categories", - "note": "Input your OneTrust category IDs by pressing 'Enter' after each entry.", - "configKey": "oneTrustCookieCategories", - "tagKey": "oneTrustCookieCategory", - "placeholder": "e.g: C0001", - "default": [ - { - "oneTrustCookieCategory": "" - } - ] - } - ], - "preRequisites": { - "featureFlags": [ - { - "configKey": "AMP_enable-gcm", - "value": false - }, - { - "configKey": "AMP_enable-gcm" - } - ], - "featureFlagsCondition": "or" - } - }, - { - "title": "Ketch consent purpose settings", - "note": [ - "Enter your Ketch purpose Id if you have them configured. ", - { - "text": "Learn more ", - "link": "https://www.rudderstack.com/docs/sources/event-streams/sdks/consent-manager/ketch/" - }, - "about RudderStack and Ketch Consent Manager integration." - ], - "fields": [ - { - "type": "tagInput", - "label": "Purpose ID", - "note": "Input your Ketch purpose Id by pressing 'Enter' after each entry", - "configKey": "ketchConsentPurposes", - "tagKey": "purpose", - "placeholder": "e.g: Marketing", - "default": [ - { - "purpose": "" - } - ] - } - ], - "preRequisites": { - "featureFlags": [ - { - "configKey": "AMP_enable-gcm", - "value": false - }, - { - "configKey": "AMP_enable-gcm" - } - ], - "featureFlagsCondition": "or" - } - } - ] + "groups": [] }, { "title": "Other settings", @@ -384,6 +348,56 @@ "title": "Consent settings", "note": "not visible in the ui", "fields": [ + { + "type": "tagInput", + "label": "OneTrust consent category IDs", + "note": "Input your OneTrust category IDs by pressing 'Enter' after each entry. The support for category names is deprecated. We recommend using the category IDs instead of the names as IDs are unique and less likely to change over time, making them a more reliable choice.", + "configKey": "oneTrustCookieCategories", + "tagKey": "oneTrustCookieCategory", + "placeholder": "e.g: C0001", + "default": [ + { + "oneTrustCookieCategory": "" + } + ], + "preRequisites": { + "featureFlags": [ + { + "configKey": "AMP_enable-gcm", + "value": false + }, + { + "configKey": "AMP_enable-gcm" + } + ], + "featureFlagsCondition": "or" + } + }, + { + "type": "tagInput", + "label": "Ketch consent purpose IDs", + "note": "Input your Ketch consent purpose IDs by pressing 'Enter' after each entry.", + "configKey": "ketchConsentPurposes", + "tagKey": "purpose", + "placeholder": "e.g: marketing", + "default": [ + { + "purpose": "" + } + ], + "preRequisites": { + "featureFlags": [ + { + "configKey": "AMP_enable-gcm", + "value": false + }, + { + "configKey": "AMP_enable-gcm" + } + ], + "featureFlagsCondition": "or" + } + }, { "type": "dynamicCustomForm", "configKey": "consentManagement",