Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "28126",
"name": "Precaliber 24 8-speed",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "28128",
"name": "Precaliber 24 8-speed",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pinkdark",
"list": "More Options",
"position": 2
}
,
{
"id": "36266",
"name": "Precaliber 16 Coaster Brake",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "More Options",
"position": 3
}
,
{
"id": "36268",
"name": "Precaliber 20 7-Speed",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 4
}
,
{
"id": "28296",
"name": "Precaliber 20",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "blue",
"list": "More Options",
"position": 5
}
,
{
"id": "26796",
"name": "Precaliber 16",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "More Options",
"position": 6
}
,
{
"id": "28297",
"name": "Precaliber 20",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "purpledark",
"list": "More Options",
"position": 7
}
,
{
"id": "36846",
"name": "Precaliber 24 8-Speed Suspension",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greydark",
"list": "More Options",
"position": 8
}
,
{
"id": "36965",
"name": "Precaliber 24 8-speed",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "bluedark",
"list": "More Options",
"position": 9
}
,
{
"id": "36270",
"name": "Precaliber 20 Coaster Brake",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 10
}
,
{
"id": "36265",
"name": "Precaliber 12",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}