概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "37965",
"name": "Bontrager NCS 35mm Fender Alloy Mud Flap",
"price": "50.0",
"brand": "Bontrager",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "37967",
"name": "Bontrager NCS 55mm Fender Alloy Mud Flap",
"price": "50.0",
"brand": "Bontrager",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "37966",
"name": "Bontrager NCS 45mm Fender Alloy Mud Flap",
"price": "50.0",
"brand": "Bontrager",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "41096",
"name": "Eurofender Standard 58mm Mud Flap - Set of 5",
"price": "90.0",
"brand": "Eurofender S.r.l.",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "31068",
"name": "Eurofender Scatto Spoiler",
"price": "50.0",
"brand": "Eurofender S.r.l.",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "32448",
"name": "Trek Allant+/Diamant Zouma+ E-bike Front Fender Wire Cover",
"price": "45.0",
"brand": "Trek-Diamant",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "32446",
"name": "Trek Allant+/Diamant Zouma+ 2020 E-bike Fender nose",
"price": "30.0",
"brand": "Trek-Diamant",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "35157",
"name": "Trek-Diamant SKS Rear Fender Slot Cover",
"price": "18.0",
"brand": "Trek-Diamant",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}