if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "37336",
"name": "Trek Block Snapback Hat",
"price": "238.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36287",
"name": "Trek 织章卡车司机帽",
"price": "238.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37339",
"name": "Trek Circle Beanie",
"price": "238.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "45019",
"name": "100% Trek Factory Racing 连帽衫",
"price": "638.0",
"brand": "100%",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "45022",
"name": "100% Trek Factory Racing 绒毛小帽",
"price": "258.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "45023",
"name": "100% Trek Factory Racing 无檐小帽",
"price": "258.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "45020",
"name": "100% Trek Factory Racing 棒球帽",
"price": "258.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "45021",
"name": "100% Trek Factory Racing 5 Panel Hat",
"price": "258.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}