Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "41973",
"name": "Trek Quilted Crewneck Unisex Sweatshirt",
"price": "69.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 1
}
,
{
"id": "41970",
"name": "Trek Sunset Script Unisex Hoodie",
"price": "69.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 2
}
,
{
"id": "41969",
"name": "Trek Department of Fun Unisex Hoodie",
"price": "55.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 3
}
,
{
"id": "37316",
"name": "Trek 80s Fade Hoodie",
"price": "36.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 4
}
,
{
"id": "45019",
"name": "100% Trek Factory Racing Hoodie",
"price": "79.99",
"brand": "100%",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}