概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "24839",
"name": "Bontrager Charger 落地式气筒",
"price": "268.0",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "30760",
"name": "Bontrager Flat Pack",
"price": "298.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "32851",
"name": "Bontrager Air Rush Pro 迷你气筒",
"price": "588.0",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "36817",
"name": "Bontrager Digital Shock Pump",
"price": "658.0",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "28009",
"name": "Bontrager 避震气筒",
"price": "288.0",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "black_grey",
"list": "More Options",
"position": 5
}
,
{
"id": "13857",
"name": "Bontrager Air Support HP Pro S 公路车打气筒",
"price": "258.0",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "greylight",
"list": "More Options",
"position": 6
}
,
{
"id": "24757",
"name": "Bontrager Air Support Pump 配量表",
"price": "228.0",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "black_greylight",
"list": "More Options",
"position": 7
}
,
{
"id": "11245",
"name": "Bontrager Air Support HV 山地气筒",
"price": "258.0",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "black_greylight",
"list": "More Options",
"position": 8
}
,
{
"id": "13856",
"name": "Bontrager Air Support HP S 公路车打气筒",
"price": "218.0",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "black_greylight",
"list": "More Options",
"position": 9
}
,
{
"id": "36818",
"name": "Bontrager Air Support Comp 气泵",
"price": "98.0",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "black",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}