if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "47530",
"name": "Checkpoint ALR 3",
"price": "1299.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41640",
"name": "Checkpoint ALR 5",
"price": "2499.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41513",
"name": "Checkpoint ALR 4",
"price": "1799.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "purplelight",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35668",
"name": "Checkpoint ALR Frameset",
"price": "1299.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "42277",
"name": "Checkpoint ALR 5 AXS",
"price": "2899.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35814",
"name": "Checkpoint ALR 5 Driftless",
"price": "2299.93",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35172",
"name": "Checkpoint ALR 5",
"price": "1999.93",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "white_black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}