From 82194361b5213266aa0dd301ab259a89dde1964e Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 6 Jun 2023 09:08:13 +0700 Subject: Update googleTagViewItem param currency, value --- src/core/utils/googleTag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/utils/googleTag.js b/src/core/utils/googleTag.js index 9faea39e..6b2c9dc2 100644 --- a/src/core/utils/googleTag.js +++ b/src/core/utils/googleTag.js @@ -28,5 +28,5 @@ export const gtagViewItem = (variants) => { price: variant.price.price }) } - gtag('event', 'view_item', { items }) + gtag('event', 'view_item', { currency: 'IDR', value: variants[0].price.priceDiscount, items }) } -- cgit v1.2.3