if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "47131",
"name": "Domane SL 6 Gen 4",
"price": "29800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41348",
"name": "Domane SL 5 Gen 4",
"price": "22800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36153",
"name": "Domane SL 7 Gen 4",
"price": "47800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36746",
"name": "Domane SL 6 Gen 4",
"price": "29800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36152",
"name": "第四代 Domane SL 6 AXS",
"price": "31800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36155",
"name": "第四代 Domane SL 7 AXS",
"price": "50800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}