if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "36959",
"name": "Madone SL 6 Di2 6 代",
"price": "38800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35029",
"name": "Émonda SL 6 AXS",
"price": "36800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36977",
"name": "Émonda SL 6 Pro Di2",
"price": "32800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36958",
"name": "Émonda SL 6 Di2",
"price": "26800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35169",
"name": "Checkpoint SL 5",
"price": "24800.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red_bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36974",
"name": "Émonda SL 5",
"price": "20800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue_bluedark",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}