Weight of the product in dataLayer

We extended dataLayer with information about product weight. You can edit this value at the Logistics tab on product page in admin.

Try it yourself and type the following into the console:
Product detail page – getShoptetDataLayer('product').weight;
When you have a product in the cart – getShoptetDataLayer('cart')[0].weight;

Post navigation