From 2ef7ae497b3bad172024d1eeb54beb223ddf296a Mon Sep 17 00:00:00 2001 From: Mohamed Khattab Date: Wed, 9 Oct 2024 08:40:25 +0300 Subject: [PATCH] feat: add Iubenda support to ga4 destination (#1691) Co-authored-by: Sai Kumar Battinoju <88789928+saikumarrs@users.noreply.github.com> --- .../destinations/ga4/schema.json | 22 +++++++++---------- .../destinations/ga4/ui-config.json | 4 ++++ test/data/validation/destinations/ga4.json | 11 ++++++++++ 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/src/configurations/destinations/ga4/schema.json b/src/configurations/destinations/ga4/schema.json index 978226d65..95851788e 100644 --- a/src/configurations/destinations/ga4/schema.json +++ b/src/configurations/destinations/ga4/schema.json @@ -342,7 +342,7 @@ "properties": { "provider": { "type": "string", - "enum": ["custom", "ketch", "oneTrust"], + "enum": ["custom", "iubenda", "ketch", "oneTrust"], "default": "oneTrust" }, "consents": { @@ -388,7 +388,7 @@ "properties": { "provider": { "type": "string", - "enum": ["custom", "ketch", "oneTrust"], + "enum": ["custom", "iubenda", "ketch", "oneTrust"], "default": "oneTrust" }, "consents": { @@ -434,7 +434,7 @@ "properties": { "provider": { "type": "string", - "enum": ["custom", "ketch", "oneTrust"], + "enum": ["custom", "iubenda", "ketch", "oneTrust"], "default": "oneTrust" }, "consents": { @@ -480,7 +480,7 @@ "properties": { "provider": { "type": "string", - "enum": ["custom", "ketch", "oneTrust"], + "enum": ["custom", "iubenda", "ketch", "oneTrust"], "default": "oneTrust" }, "consents": { @@ -526,7 +526,7 @@ "properties": { "provider": { "type": "string", - "enum": ["custom", "ketch", "oneTrust"], + "enum": ["custom", "iubenda", "ketch", "oneTrust"], "default": "oneTrust" }, "consents": { @@ -572,7 +572,7 @@ "properties": { "provider": { "type": "string", - "enum": ["custom", "ketch", "oneTrust"], + "enum": ["custom", "iubenda", "ketch", "oneTrust"], "default": "oneTrust" }, "consents": { @@ -618,7 +618,7 @@ "properties": { "provider": { "type": "string", - "enum": ["custom", "ketch", "oneTrust"], + "enum": ["custom", "iubenda", "ketch", "oneTrust"], "default": "oneTrust" }, "consents": { @@ -664,7 +664,7 @@ "properties": { "provider": { "type": "string", - "enum": ["custom", "ketch", "oneTrust"], + "enum": ["custom", "iubenda", "ketch", "oneTrust"], "default": "oneTrust" }, "consents": { @@ -710,7 +710,7 @@ "properties": { "provider": { "type": "string", - "enum": ["custom", "ketch", "oneTrust"], + "enum": ["custom", "iubenda", "ketch", "oneTrust"], "default": "oneTrust" }, "consents": { @@ -756,7 +756,7 @@ "properties": { "provider": { "type": "string", - "enum": ["custom", "ketch", "oneTrust"], + "enum": ["custom", "iubenda", "ketch", "oneTrust"], "default": "oneTrust" }, "consents": { @@ -802,7 +802,7 @@ "properties": { "provider": { "type": "string", - "enum": ["custom", "ketch", "oneTrust"], + "enum": ["custom", "iubenda", "ketch", "oneTrust"], "default": "oneTrust" }, "consents": { diff --git a/src/configurations/destinations/ga4/ui-config.json b/src/configurations/destinations/ga4/ui-config.json index b94667b39..135b8bc34 100644 --- a/src/configurations/destinations/ga4/ui-config.json +++ b/src/configurations/destinations/ga4/ui-config.json @@ -473,6 +473,10 @@ "label": "Custom", "value": "custom" }, + { + "label": "Iubenda", + "value": "iubenda" + }, { "label": "Ketch", "value": "ketch" diff --git a/test/data/validation/destinations/ga4.json b/test/data/validation/destinations/ga4.json index a83d24e28..6606a3168 100644 --- a/test/data/validation/destinations/ga4.json +++ b/test/data/validation/destinations/ga4.json @@ -317,6 +317,17 @@ { "provider": "ketch", "consents": [] + }, + { + "provider": "iubenda", + "consents": [ + { + "consent": "1" + }, + { + "consent": "4" + } + ] } ] }