概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "23365",
"name": "Bontrager Elite 变速线和外管套件",
"price": "248.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "24736",
"name": "Bontrager Elite 刹车线和外管套件",
"price": "248.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "23366",
"name": "Bontrager Comp 变速线和外管套件",
"price": "138.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "white",
"list": "More Options",
"position": 3
}
,
{
"id": "24737",
"name": "Bontrager Comp 刹车线和外管套件",
"price": "138.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "white",
"list": "More Options",
"position": 4
}
,
{
"id": "23370",
"name": "Bontrager Elite 变速线缆",
"price": "158.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "More Options",
"position": 5
}
,
{
"id": "24742",
"name": "Bontrager Elite MTB 刹车线缆",
"price": "158.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "More Options",
"position": 6
}
,
{
"id": "24743",
"name": "Bontrager Elite Road 刹车线缆",
"price": "158.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "More Options",
"position": 7
}
,
{
"id": "23277",
"name": "Bontrager Pro 变速线和外管套件",
"price": "388.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "24735",
"name": "Bontrager Pro 刹车线和外管套件",
"price": "388.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "42048",
"name": "Trek Domane+ SLR Seat Tube Cable and Canbus Housing",
"price": "70.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "24734",
"name": "Bontrager XXX 刹车线和外管套件",
"price": "638.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 11
}
,
{
"id": "23364",
"name": "Bontrager XXX 变速线和外管套件",
"price": "638.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 12
}
,
{
"id": "23369",
"name": "Bontrager Pro 变速线缆",
"price": "189.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "More Options",
"position": 13
}
,
{
"id": "24745",
"name": "Bontrager Comp MTB 刹车线缆",
"price": "35.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "More Options",
"position": 14
}
,
{
"id": "24744",
"name": "Bontrager Elite Road 刹车线缆",
"price": "35.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "More Options",
"position": 15
}
,
{
"id": "23371",
"name": "Bontrager Comp Shift Cable",
"price": "35.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "More Options",
"position": 16
}
,
{
"id": "23363",
"name": "Bontrager 变速线和外管套件",
"price": "28.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 17
}
,
{
"id": "24733",
"name": "Bontrager 刹车线和外管套件",
"price": "28.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 18
}
]
}
});
} else {
console.log("dataLayer");
}