if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "13675",
"name": "Bontrager Ballista Road Cycling Shoe",
"price": "99.99",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "25342",
"name": "Bontrager Foray Women's Mountain Bike Shoe",
"price": "59.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "purple",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "21718",
"name": "Bontrager Vostra Women's Road Cycling Shoe",
"price": "49.99",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "21729",
"name": "Bontrager Adorn Women's Mountain Bike Shoe",
"price": "39.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "44847",
"name": "Crankbrothers Mallet BOA Shoe",
"price": "199.99",
"brand": "Crankbrothers",
"category": "Mountain bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "44819",
"name": "Crankbrothers Stamp BOA Shoe",
"price": "179.99",
"brand": "Crankbrothers",
"category": "Mountain bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}