if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "47281",
"name": "Slash 9.9 XX AXS T-Type Gen 6",
"price": "106800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47246",
"name": "第 5 代 Slash SE",
"price": "105800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "brown_bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47280",
"name": "Slash 9.9 X0 AXS T-Type Gen 6",
"price": "93800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47279",
"name": "Slash 9.8 XT Gen 6",
"price": "60800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}