New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ecommerce Tracking #700
Comments
@EPNW-Eric Thanks for creating this issue,the possible workaround for now is to use Step 1: Create a Trigger via Custom Event Trigger Step 2: Create DataLayer variable Step 3: Create a custom tag to track E commerce products in a order Custom HTML
Now you need to trigger the above tag using this code
Note: I have an eg for |
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/best-pratice-shopify-with-matomo-tag-manager/53699/4 |
I noticed that the Tag Manager does not support Ecommerce tracking yet.
When looking at the JavaScript Tracker, there are 3 main
track
functionalities regarding Ecommerce:setEcommerceView
)The other functions (
addEcommerceItem
,removeEcommerceItem
,clearEcommerceCart
,getEcommerceItems
) are used for managing the cart.Adding "product/category page view" was rather simple (#699).
On the other hand, tracking a cart update or an order is much harder since these two calls require knowledge of the cart.
From my understanding, in many shop systems, the cart content is stored server side, and only a cart identifier is stored client side. As for orders, they are also processed server side... I'm not yet sure how to deal with this.
An initial idea was something like a cart tag that when triggered modifes something like a cart variable (which stores data by using the local storage of the browser). Then the content of such a cart variable could be used in the tracking calls. On the other hand, this would store data on a users device which in most cases are already stored server side, so inconsistencies could arise (think of a logged-in-user who modifies the cart on an other device...).
Maybe cart and order tracking is out of scope for the Tag Manager and an entirely new plugin that allows users to link their shopping backend with Matomo is the best solution here.
Let me know what you think!
The text was updated successfully, but these errors were encountered: