Loading failed for the with source "https://www.googletagmanager.com
Loading failed for the with source "https://mbmcargotech.containers.piwik.pro/
Can anyone give me a nudge in the right direction?
Welcome to our community!
Could you PM me with a link to where I can see the issue?
I know why the problem occurs
Could you shed some light on that as well?
I Asume yo mean the link to my website: https://www.mbmcargotech.nl. I figured out that the JS code is most likely not on the proper position in the html code. But Piwik is working without any problem and thats confusing.
From what I see when I add products to cart they do not push any information to dataLayer that’s why the tags don’t fire on the website. I guess that’s the case with all the rest of ecommerce events.
OK, any idea why its not pushing data? My knowledge is (to) limited for this issue.
Was it there at some point?
Sorry I don’t understand what you mean.
Was the ecommerce data pushed to dataLayer before?
Trying to figure out if it was set up and stopped working at some point or if it was never set up
Ah, clear. Well I setup all the stages, assuming you mean the stages like: Ecommerce add to cart setup.
But I’m not sure if that’s what you mean. And I got error messages in the debugger. So something must have been sent or am I mistaking?
The problem (based on add to cart):
- adding to a cart an item in the store does not send data to dataLayer,
Why it’s a problem:
- You are reading from dataLayer if an event occured to send data to Piwik PRO.
dataLayer is like a book of information that Piwik PRO uses to get data, but when someone adds a product to a cart on your website, the website does not update this book with new information, so Piwik PRO is not able to read this new information because it’s not there.
To fix it you have to let your developers know that they should add dataLayer events when someone adds something to a cart (and all the other ecommerce events you want to track)
Examples of dataLayer pushes Ulepszony e-commerce dla Menedżera tagów | Universal Analytics for Tag manager | Google for Developers
I assumed the Piwik tag manager would take care of that. Its simply a lack of knowledge on my side. I never used the Google tag manager, I’m trying to use Google as less as possible. Google’s behavior is one of the reasons to go for Piwik.
Is it possible to fix it with the Piwik tag manager or do I still need Google?
You can’t fix it with google nor Piwik PRO, the issue is that your website does not give information about what happens when it comes to ecommerce so the tags will not work, regardless of what tool you are using to track data from dataLayer.
To fix it you need your developers or someone who have access to the code responsible for ecommerce actions to either add those events to dataLayer or to use our ecommerce JS methods (to skip the need for dataLayer for ecommerce)