概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "47147",
"name": "Trek Adventure 车架储存包",
"price": "988.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "47148",
"name": "Trek Adventure 三角框架包",
"price": "588.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "47358",
"name": "Trek Adventure 顶管包",
"price": "358.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black_greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "48444",
"name": "Trek 拇指螺丝 - 4 件装",
"price": "58.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "41673",
"name": "Trek Adventure Boss 全车架包",
"price": "688.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "45082",
"name": "Trek Waterproof Buckled NIP Bag",
"price": "118.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "35555",
"name": "Bontrager Adventure Boss 车架包",
"price": "598.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "14025",
"name": "Bontrager Speed Concept Draft Box II Lid",
"price": "110.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "37387",
"name": "Bontrager拇指螺丝",
"price": "48.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "38548",
"name": "Trek 2022 Speed Concept SLR Bento Box Assembly",
"price": "250.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "38003",
"name": "Trek 2022 Speed Concept SLR Bento Box Bucket",
"price": "70.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}