Overview
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": "More Options",
"position": 1
}
,
{
"id": "36534",
"name": "Trek Race Crew Cycling Socks",
"price": "44.99",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "yellowvisibility",
"list": "More Options",
"position": 2
}
,
{
"id": "47321",
"name": "Rapha Pro Team Cycling Socks",
"price": "40.0",
"brand": "Rapha",
"category": "Men's cycling socks",
"variant": "bluedark_grey",
"list": "More Options",
"position": 3
}
,
{
"id": "46741",
"name": "Santini Lidl-Trek Team Cycling Socks",
"price": "34.99",
"brand": "Santini",
"category": "Men's cycling socks",
"variant": "white",
"list": "More Options",
"position": 4
}
,
{
"id": "40649",
"name": "Electra Banana Dance Socks",
"price": "39.99",
"brand": "Electra",
"category": "Men's cycling socks",
"variant": "blue",
"list": "More Options",
"position": 5
}
,
{
"id": "40653",
"name": "Electra Richie Socks",
"price": "39.99",
"brand": "Electra",
"category": "Men's cycling socks",
"variant": "grey",
"list": "More Options",
"position": 6
}
,
{
"id": "40651",
"name": "Electra Tiki Time Socks",
"price": "39.99",
"brand": "Electra",
"category": "Men's cycling socks",
"variant": "reddark",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}