if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "49691",
"name": "Trek Right Stacked Unisex Hoodie",
"price": "59.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "greenlight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "49118",
"name": "Trek Left Stacked Unisex Hoodie",
"price": "59.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37324",
"name": "Trek Ride Club T-Shirt",
"price": "24.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36291",
"name": "Trek Original Women's T-shirt",
"price": "20.99",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40152",
"name": "Santini Trek-Segafredo Men's Team Polo",
"price": "24.99",
"brand": "Santini",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "41981",
"name": "Trek Sunset Script Beanie",
"price": "14.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "bluedark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "45021",
"name": "100% Trek Factory Racing 5-Panel Hat",
"price": "29.99",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "45022",
"name": "100% Trek Factory Racing Pom Beanie",
"price": "29.99",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}