if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "34133",
"name": "Trek Velocis Road Cycling Shoe",
"price": "249.99",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "25000",
"name": "Bontrager XXX Road Cycling Shoe",
"price": "264.93",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "22484",
"name": "Bontrager Velocis Women's Road Cycling Shoe",
"price": "124.93",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "13675",
"name": "Bontrager Ballista Road Cycling Shoe",
"price": "99.99",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}