Cart Data in Shopping not available.
-
Hey,
I have installed the plugin to integrate Enhanced Ecommerce to my WooCommerce Store.Everything seems to work fine except cart. I have developed the theme and was looking if you could help me integrate the cart data with your plugin.
My theme doesn’t have a cart page, it is a popup kind of implementation with ajax support. Looking at the code I understood that I have to handle ‘addProductToCartEEC’ myself.
I added this in my theme code.
window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.addProductToCartEEC', 'ecommerce': { 'currencyCode': 'INR', 'add': { 'products': [{ 'name': item.name, 'id': item.sku, 'price': item.price, 'category': item.category, 'quantity': item.quantity, }], }, }, });
Now I can confirm this gets triggered when the product is added as I console.log(window[ gtm4wp_datalayer_name ])
Still I am unable to see Cart data in my shopping behaviour dashboard. Others are showing.
I would be very thankful, if you could nudge me in the right direction.
Thanks!
- The topic ‘Cart Data in Shopping not available.’ is closed to new replies.