- 🇳🇴Norway zaporylie
Also, I'm not sure if the product view tracking even works for anonymous users. It adds it to the same temp store, but the product page is then likely cached and only the first anon user is tracked? The other events work as users have a session once they put something in their cart.
8.x-2.x here. I am seeing the page view tracking to be completely uncacheable causing every page load to be slowed down because CommerceEventsSubscriber::trackProductView needs to load entities and do all calculations, data manipulations etc for every single request. The data used for the event should be read from cache if the page is served from cache - there is no point in skipping the cache completely. To give some numbers - we were able to reduce page load 2x by caching only the price calculations - to be fair, that was a site with quite complex price calculation chain.