Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "40927",
"name": "Wahoo 20 Path",
"price": "425.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "More Options",
"position": 1
}
,
{
"id": "36846",
"name": "Precaliber 24 8-Speed Suspension",
"price": "350.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greydark",
"list": "More Options",
"position": 2
}
,
{
"id": "36271",
"name": "Precaliber 20 Freewheel",
"price": "275.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "41013",
"name": "Wahoo 24 Trail",
"price": "700.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "green",
"list": "More Options",
"position": 4
}
,
{
"id": "41014",
"name": "Wahoo 20 Trail",
"price": "680.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greenvisibility",
"list": "More Options",
"position": 5
}
,
{
"id": "40929",
"name": "Wahoo 26 Path",
"price": "500.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "blue",
"list": "More Options",
"position": 6
}
,
{
"id": "40928",
"name": "Wahoo 24 Path",
"price": "450.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 7
}
,
{
"id": "36268",
"name": "Precaliber 20 7-Speed",
"price": "330.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 8
}
,
{
"id": "36267",
"name": "Precaliber 16",
"price": "280.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "More Options",
"position": 9
}
,
{
"id": "36265",
"name": "Precaliber 12",
"price": "250.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 10
}
,
{
"id": "36965",
"name": "Precaliber 24 8-speed",
"price": "325.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "grey",
"list": "More Options",
"position": 11
}
,
{
"id": "37052",
"name": "Wahoo 20",
"price": "425.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 12
}
]
}
});
} else {
console.log("dataLayer");
}