From 40022b219310217d84434fe22aabf3cd0337e24e Mon Sep 17 00:00:00 2001 From: Daniel Thomas Date: Tue, 10 Sep 2024 16:16:20 +0200 Subject: [PATCH] feat: the category given to emarsys should not be the name but a category ID that can be mapped to the category assigned to products in the emarsys feed --- .../emarsys/server/template/emarsyswebextendtagdata.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/provider/emarsys/server/template/emarsyswebextendtagdata.go b/pkg/provider/emarsys/server/template/emarsyswebextendtagdata.go index 477257b..e1addf4 100644 --- a/pkg/provider/emarsys/server/template/emarsyswebextendtagdata.go +++ b/pkg/provider/emarsys/server/template/emarsyswebextendtagdata.go @@ -141,7 +141,7 @@ function mapEventData() { break; } case 'emarsys_category': { - mappedData.category = eventData.item_list_name; + mappedData.category = eventData.item_list_id; break; } case 'emarsys_purchase': { @@ -159,7 +159,7 @@ function mapEventData() { break; } case 'view_item_list': { - mappedData.category = eventData.item_list_name; + mappedData.category = eventData.item_list_id; break; } case 'purchase': {