if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "34653",
"name": "Trek Solstice 骑行服",
"price": "388.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37082",
"name": "Trek Evoke 山地自行车 Tech Tee",
"price": "288.0",
"brand": "Trek",
"category": "Mountain bike jerseys",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34651",
"name": "Trek Circuit 骑行服",
"price": "588.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37365",
"name": "Trek Circuit 保暖长袖骑行服",
"price": "788.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "greydark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "34650",
"name": "Trek Circuit LTD 骑行服",
"price": "588.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "greydark_black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36068",
"name": "Trek Circuit LTD Long Sleeve Cycling Jersey",
"price": "688.0",
"brand": "Trek",
"category": "Road bike jerseys",
"variant": "reddark_bluedark",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}