@shopbite-de/storefront 1.22.0 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ export function useTrackEvent() {
|
|
|
8
8
|
"setEcommerceView",
|
|
9
9
|
product.productNumber,
|
|
10
10
|
product.translated.name ?? product.name,
|
|
11
|
-
product.seoCategory
|
|
11
|
+
product.seoCategory?.name ?? false,
|
|
12
12
|
product.calculatedPrice.unitPrice,
|
|
13
13
|
]);
|
|
14
14
|
proxy._paq.push(["trackPageView", product.productNumber]);
|
|
@@ -21,7 +21,7 @@ export function useTrackEvent() {
|
|
|
21
21
|
"addEcommerceItem",
|
|
22
22
|
item.product?.productNumber ?? item.id,
|
|
23
23
|
item.label,
|
|
24
|
-
item.product?.seoCategory
|
|
24
|
+
item.product?.seoCategory?.name ?? false,
|
|
25
25
|
item.unitPrice,
|
|
26
26
|
item.quantity,
|
|
27
27
|
]);
|
|
@@ -54,13 +54,7 @@ export function useTrackEvent() {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
function trackSearch(term: string, productNumbers: string[]) {
|
|
57
|
-
proxy._paq.push([
|
|
58
|
-
"trackEvent",
|
|
59
|
-
"Search",
|
|
60
|
-
term,
|
|
61
|
-
productNumbers.join(","),
|
|
62
|
-
productNumbers.length,
|
|
63
|
-
]);
|
|
57
|
+
proxy._paq.push(["trackSiteSearch", term, false, productNumbers.length]);
|
|
64
58
|
}
|
|
65
59
|
|
|
66
60
|
return {
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ const criteria = encodeForQuery({
|
|
|
16
16
|
"propertyIds",
|
|
17
17
|
"options",
|
|
18
18
|
"optionIds",
|
|
19
|
-
"
|
|
19
|
+
"categories",
|
|
20
20
|
"configuratorSettings",
|
|
21
21
|
"children",
|
|
22
22
|
"parentId",
|
|
@@ -31,6 +31,7 @@ const criteria = encodeForQuery({
|
|
|
31
31
|
},
|
|
32
32
|
associations: {
|
|
33
33
|
cover: { associations: { media: {} } },
|
|
34
|
+
categories: {},
|
|
34
35
|
properties: { associations: { group: {} } },
|
|
35
36
|
options: { associations: { group: {} } },
|
|
36
37
|
configuratorSettings: {
|