-- HikaShop version -- : 4.7.5
-- Joomla version -- : 4.3.4
-- PHP version -- : 8.0.27
Hi,
we're setting up a new Joomla 4 website with the latest version of Hikashop + Hikashop Google Analytics 4 plugin (v. 1.1.1)
I have noticed that, when the user is logged in and has something in their cart, the "view_cart" event is fired on every page load. This skews our analytics data by overreporting cart views.
The expected behavior is to see the view_cart event only when the user actually views their cart, i.e. goes to the cart display page, or goes to a page where a cart module is rendered.
Upon inspecting the plugin code it seems that is indeed only checking whether the cart is empty in order to fire this event or not, and not checking for the current page/module rendering.
Is there something I'm missing or is this a bug? If bug, is there a workaround you can suggest?
Thank you