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": "36100",
"name": "Émonda ALR 5",
"price": "17800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33078",
"name": "Émonda ALR 4",
"price": "12800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_orangelight",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}