What is the name of the domain?
What is the issue you’re encountering
I added the following e-commerce tracking code to our Shopify website, but it’s not working.
What steps have you taken to resolve the issue?
I added the following e-commerce tracking code to our Shopify website, but it’s not working.
analytics.subscribe(“product_added_to_cart”, (event) => {zaraz.ecommerce(‘event’,‘Product Added’);
});
analytics.subscribe(“product_viewed”, (event) => {
zaraz.ecommerce(“Product Viewed”
);
});
analytics.subscribe(“collection_viewed”, (event) => {zaraz.ecommerce(‘event’,‘Product_List_Viewed’);
});
When I test the code, I get the following error: ReferenceError: zaraz is not defined.
This event cannot be received until the error is fixed.
Does anyone know what might be causing this?