if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "36569",
"name": "Trek Race Crew Merino Wool Cycling Socks",
"price": "44.99",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36534",
"name": "Trek Race Crew Cycling Socks",
"price": "44.99",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47321",
"name": "Rapha Pro Team Cycling Socks",
"price": "42.0",
"brand": "Rapha",
"category": "Men's cycling socks",
"variant": "bluedark_grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "46741",
"name": "Santini Lidl-Trek Team Cycling Socks",
"price": "34.99",
"brand": "Santini",
"category": "Men's cycling socks",
"variant": "white",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "47322",
"name": "Rapha Logo Cycling Socks",
"price": "28.0",
"brand": "Rapha",
"category": "Men's cycling socks",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}