概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "45367",
"name": "Trek Trails 男女通用 T 恤",
"price": "258.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "green",
"list": "More Options",
"position": 1
}
,
{
"id": "36289",
"name": "Trek 复古徽标 T 恤",
"price": "258.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "More Options",
"position": 2
}
,
{
"id": "40638",
"name": "Trek Fade Women's T-Shirt",
"price": "258.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "tealdark",
"list": "More Options",
"position": 3
}
,
{
"id": "37330",
"name": "Trek Basket Bike Women's T-Shirt",
"price": "258.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "yellow",
"list": "More Options",
"position": 4
}
,
{
"id": "40636",
"name": "Trek Radventure Unisex T-Shirt",
"price": "258.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "brown",
"list": "More Options",
"position": 5
}
,
{
"id": "40640",
"name": "Trek Lake Dreams Unisex T-Shirt",
"price": "258.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "37326",
"name": "Trek Feel Good T-Shirt",
"price": "258.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "37324",
"name": "Trek Ride Club T-Shirt",
"price": "258.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "32581",
"name": "Trek Team Car T-Shirt",
"price": "238.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "More Options",
"position": 9
}
,
{
"id": "47325",
"name": "Rapha 棉质 T 恤",
"price": "530.0",
"brand": "Rapha",
"category": "T-Shirts",
"variant": "black",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}