Skip to content

Commit de01ee1

Browse files
committed
Fixed category naming convention for GA4 extension
1 parent 6a4b356 commit de01ee1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function addCategoryElements($product, &$viewItem)
247247
$viewItem['item_category'] = $category->getName();
248248
$index++;
249249
} else {
250-
$viewItem['item_category_' . $index] = $category->getName();
250+
$viewItem['item_category' . $index] = $category->getName();
251251
$index++;
252252
}
253253

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"magepal/magento2-google-analytics4": "Prepare for the future with Google Analytics 4. Learn more at https://www.magepal.com/google-analytics-4-for-google-tag-manager.html"
4545
},
4646
"type": "magento2-module",
47-
"version": "2.7.1",
47+
"version": "2.7.2",
4848
"autoload": {
4949
"files": [
5050
"registration.php"

0 commit comments

Comments
 (0)