if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "47071",
"name": "Checkpoint SL 5 AXS Gen 3",
"price": "29800.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47256",
"name": "FX Sport 6",
"price": "28800.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "bronze_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47263",
"name": "FX Sport 5",
"price": "16800.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greendark_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47243",
"name": "FX Sport 4",
"price": "13800.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "47530",
"name": "Checkpoint ALR 3",
"price": "10800.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "41640",
"name": "Checkpoint ALR 5",
"price": "17800.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35296",
"name": "Checkpoint SLR 9 AXS",
"price": "82800.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "yellow_bluedark",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "41349",
"name": "Checkpoint SLR 7 AXS",
"price": "72800.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "black_greendark",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "35293",
"name": "Checkpoint SLR 6 AXS",
"price": "58800.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "yellow_bluedark",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "41398",
"name": "Checkpoint SL 5",
"price": "25800.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "40822",
"name": "FX Sport 4",
"price": "14800.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 11
}
,
{
"id": "35294",
"name": "Checkpoint SLR 7",
"price": "68800.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "yellow_bluedark",
"list": "CATEGORY",
"position": 12
}
,
{
"id": "35295",
"name": "Checkpoint SLR 7 AXS",
"price": "72800.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "black_greendark",
"list": "CATEGORY",
"position": 13
}
]
}
});
} else {
console.log("dataLayer");
}