Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "10652",
"name": "Trek 16" Kids' Training Wheels",
"price": "36.99",
"brand": "Bontrager",
"category": "Bike training wheels",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "31244",
"name": "Wald 10252 16-20" Training Wheels Kit",
"price": "40.5",
"brand": "Wald",
"category": "Bike training wheels",
"variant": "greylight",
"list": "More Options",
"position": 2
}
,
{
"id": "01743",
"name": "Wald 252 16-20" Training Wheels Kit",
"price": "37.5",
"brand": "Wald",
"category": "Bike training wheels",
"variant": "greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "31245",
"name": "Wald 1216 12-16" Training Wheels Kit",
"price": "34.75",
"brand": "Wald",
"category": "Bike training wheels",
"variant": "greylight",
"list": "More Options",
"position": 4
}
,
{
"id": "14986",
"name": "Bontrager/Electra Training Wheel Hardware",
"price": "10.99",
"brand": "Trek-Electra",
"category": "Bike training wheels",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}