-- HikaShop version -- : 5.1.6
-- Joomla version -- : 5.3.0
-- PHP version -- : 8.1
-- Browser(s) name and version -- : Google chrome
Hi,
'item_id' => json_encode($product->product_code),
Is this right or it was a mistake, shouldn't that be product_id?
'item_id' => json_encode($product->product_id),
I ended up checking the plugin after noticing that my remarketing integration with newsman was no longer working.
GA4 sends the product code to the dataLayer at "product id" instead of the id.
I'm not saying it's wrong one way or another, I know that a long time ago when I did the integration everything worked ok with newsman and now it doesn't.
I'm trying to figure out where the change was made that creates this situation for me now :

:
For a future update, perhaps the option to choose from the plugin settings what information to send to the dataLayer would be useful.
If I edit the plugin and make this change, will it still work ok with Google Analytics?