Skip to content

Commit 1fa494e

Browse files
committed
[Tracker] Fixing backend generated add to cart events identifier structure
1 parent 34fca08 commit 1fa494e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/module-elasticsuite-tracker/Plugin/QuotePlugin.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ public function afterAddProduct(
141141
private function logEvent(int $productId, int $storeId, ?int $customerGroupId, ?int $companyId): void
142142
{
143143
$pageData = [
144-
'identifier' => 'checkout_cart_add',
145-
'label' => stripslashes($this->getPageTypeLabel('checkout_cart_add')),
144+
'type' => [
145+
'identifier' => 'checkout_cart_add',
146+
'label' => stripslashes($this->getPageTypeLabel('checkout_cart_add')),
147+
],
146148
];
147149
$pageData['store_id'] = $storeId;
148150
$pageData['cart']['product_id'] = $productId;

0 commit comments

Comments
 (0)