I am using Matomo for some years now to track visits and eCommerce - orders of my Webshop. I am currently updating my webshop-matomo-plugin (jtlshop5) and i want to user the matomo tag manager from now on.
For development i use docker containers for the shopsoftware and matomo. Matomo is the current bitnami-docker-container ver 4.15.0.
A good part of the plugin is ready and working. Normal tracking of site views via the container works, this was easy. A little trickier is eCommerce tracking with matomo tag manager. Despite my french is bad i used this tutorial:
Tracking cart_updates and orders work too, i can see them on my docker-test-matomo in the eCommerce-section.
…but i am not sure about product_views and category_views…i can’t see them in matomo. But i am not really sure where i have to look… Where can i see product_views and category_views in matomo? Should these appear in the “Ecommerce Log”?
you are right, with the additional line (_paq.push([‘trackPageView’]) i had dublicate page views on product-pages, too.
Currently i believe the easiest solution is what you wrote: I use a custom-html tag to track all page views now (because i need Cookie Consent) and i delay the page-view tag by 1ms in Matomo. I wasn’t even aware that there is the possibility in the Matomo Tag-Manager → Tag itsellf:
Show advanced settings → Fire Delay
I tested a little this morning - now matomo tracking and matomo eCommerce tracking seems to work. I ask myself if 1ms is always enough? Or is it possible that the product-view will not be tracked now and then because _paq is not updated soon enough with the product view?