if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "36569",
"name": "Trek Race Crew Merino Wool Cycling Sock",
"price": "19.99",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36570",
"name": "Trek Race Crew Cushioned Merino Wool Cycling Sock",
"price": "22.99",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36532",
"name": "Trek Race Reflective Crew Cycling Socks",
"price": "22.99",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36534",
"name": "Trek Race Crew Cycling Socks",
"price": "22.99",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36533",
"name": "Trek Race Quarter Cycling Socks",
"price": "19.99",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "26125",
"name": "Bontrager Race Crew Cycling Socks 3-Pack",
"price": "17.99",
"brand": "Bontrager",
"category": "Cycling socks",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "30967",
"name": "Bontrager Race Crew Thermal Wool Cycling Socks",
"price": "9.99",
"brand": "Bontrager",
"category": "Cycling socks",
"variant": "greydark_red",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35322",
"name": "Bontrager Race Crew Cycling Socks",
"price": "7.99",
"brand": "Bontrager",
"category": "Cycling socks",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "24822",
"name": "Bontrager Velocis Crew Cycling Socks",
"price": "6.99",
"brand": "Bontrager",
"category": "Cycling socks",
"variant": "black",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "35319",
"name": "Bontrager Velocis Crew Cycling Socks",
"price": "6.99",
"brand": "Bontrager",
"category": "Cycling socks",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "24826",
"name": "Bontrager Race Crew Cycling Socks",
"price": "6.99",
"brand": "Bontrager",
"category": "Cycling socks",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}