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â?
This line of code was not mandatory by delaying the matomo classic tracking code by one millisecond (which avoids duplicates in the return of page views).
Iâve updated the guide along your lines, but Iâm still not convinced this is the best solution.
Hi, @ronan_hello
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?
Bye, Jörg
I roll back the tutorial with my first technique (with delay).
I guess 1ms is enought, itâs just to say to the Matomo tag Manager âyes, there is a delay, wait for the page tobe readyâ.