概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "36985",
"name": "Bontrager SE Elite 可回收把套组",
"price": "188.0",
"brand": "Bontrager",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "33100",
"name": "Bontrager XR Trail Comp 山地把套组",
"price": "168.0",
"brand": "Bontrager",
"category": "Bike handlebar grips & tape",
"variant": "orange",
"list": "More Options",
"position": 2
}
,
{
"id": "14247",
"name": "Bontrager Satellite IsoZone 把套",
"price": "278.0",
"brand": "Bontrager",
"category": "Bike handlebar grips & tape",
"variant": "black_greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "35889",
"name": "Bontrager XR Endurance Comp 可回收把套组",
"price": "98.0",
"brand": "Bontrager",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "14211",
"name": "Bontrager XR 硅质把套",
"price": "168.0",
"brand": "Bontrager",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "30976",
"name": "Trek 童车的转把变速器把套",
"price": "60.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "pinkvisibility",
"list": "More Options",
"position": 6
}
,
{
"id": "12278",
"name": "Trek 童车 MTB 把套",
"price": "50.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}