if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "35003",
"name": "FX 2 Disc Gen 3",
"price": "649.93",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32770",
"name": "FX 1 Mid-step Gen 3",
"price": "429.97",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32769",
"name": "FX 1 Gen 3",
"price": "429.97",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35021",
"name": "FX 3 Disc Gen 3",
"price": "799.93",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35004",
"name": "FX 2 Disc Mid-step Gen 3",
"price": "649.93",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35002",
"name": "FX 1 Disc Mid-step Gen 3",
"price": "499.97",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35001",
"name": "FX 1 Disc Gen 3",
"price": "499.97",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}