if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "41640",
"name": "Checkpoint ALR 5",
"price": "17800.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41607",
"name": "Domane AL 4 Gen 4",
"price": "9980.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41587",
"name": "第四代 Domane AL 2",
"price": "6880.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "33037",
"name": "Domane AL 2 轮缘",
"price": "4880.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35172",
"name": "Checkpoint ALR 5",
"price": "16800.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "bluedark_red",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "33082",
"name": "第三代 Domane AL 3",
"price": "7380.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue_black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}