if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "21503",
"name": "Trek 儿童流苏",
"price": "44.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "pink",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "11155",
"name": "Bontrager Satellite Plus IsoZone 把端适配器",
"price": "111.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "10311",
"name": "Bontrager IsoZone 把横塞",
"price": "25.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}