if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "36967",
"name": "第三代 Marlin 7",
"price": "5280.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluelight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37052",
"name": "Wahoo 20",
"price": "3280.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34587",
"name": "第二代 Marlin 5",
"price": "3280.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "29759",
"name": "第二代 Marlin 4",
"price": "2680.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greenlight",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}