if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "40636",
"name": "Trek Radventure Unisex T-Shirt",
"price": "258.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "brown",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33802",
"name": "Trek Bicycle Co T 恤",
"price": "258.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40637",
"name": "Trek Fade Unisex T-Shirt",
"price": "258.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "tealdark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40639",
"name": "Trek Check Script Unisex T-Shirt",
"price": "258.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40640",
"name": "Trek Lake Dreams Unisex T-Shirt",
"price": "258.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40642",
"name": "Trek Bicycle Co 5 Panel Hat",
"price": "238.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "orange",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "22489",
"name": "Bontrager 儿童自行车手套",
"price": "138.0",
"brand": "Bontrager",
"category": "Fingerless cycling gloves",
"variant": "pinkdark",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}