if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "34749",
"name": "Trek Bicycle Script 帽衫",
"price": "598.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36293",
"name": "Trek 复古徽标帽衫",
"price": "598.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41974",
"name": "Trek Bicycle Tonal Long Sleeve Unisex T-Shirt",
"price": "388.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40149",
"name": "Santini Trek-Segafredo 女式车队版 T 恤衫",
"price": "328.0",
"brand": "Santini",
"category": "T-Shirts",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36287",
"name": "Trek 织章卡车司机帽",
"price": "238.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}