if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "32740",
"name": "Trek Velocis Cycling Short",
"price": "89.99",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32738",
"name": "Trek Velocis Cycling Bib Short",
"price": "144.99",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37090",
"name": "Trek Troslo Liner Short",
"price": "59.99",
"brand": "Trek",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "32746",
"name": "Trek Solstice Cycling Short",
"price": "49.99",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "34659",
"name": "Trek Solstice Cycling Bib Short",
"price": "59.99",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "41149",
"name": "Trek Rhythm Mountain Bike Short",
"price": "99.99",
"brand": "Trek",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "37084",
"name": "Trek Evoke Mountain Bike Short",
"price": "89.93",
"brand": "Trek",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "32744",
"name": "Trek Circuit Cycling Short",
"price": "59.99",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "32742",
"name": "Trek Circuit Cycling Bib Short",
"price": "99.99",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}