概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "31437",
"name": "Trek KT-305R 20" Kids Wheel",
"price": "658.0",
"brand": "Bontrager",
"category": "Bike wheels",
"variant": "greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "10727",
"name": "Trek Kids' 28 Hole 24" 6-Bolt Disc Wheel",
"price": "548.0",
"brand": "Trek",
"category": "Bike wheels",
"variant": "white",
"list": "More Options",
"position": 2
}
,
{
"id": "10726",
"name": "Trek Roscoe Boost 20" MTB Wheel",
"price": "518.0",
"brand": "Trek",
"category": "Bike wheels",
"variant": "white",
"list": "More Options",
"position": 3
}
,
{
"id": "35660",
"name": "Trek Kids' 28 Hole 24" Wheel",
"price": "518.0",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black_greylight",
"list": "More Options",
"position": 4
}
,
{
"id": "31213",
"name": "Trek Precaliber 24 8-Speed Wheel",
"price": "518.0",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "31432",
"name": "Trek Jet 16" Kids Wheel",
"price": "458.0",
"brand": "Bontrager",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "27027",
"name": "Trek Kids' Quick Release 20" Wheel",
"price": "448.0",
"brand": "Bontrager",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "31763",
"name": "Trek Precaliber 20 Wheel",
"price": "448.0",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "31435",
"name": "Trek JYS01C 20" Kids Wheel",
"price": "438.0",
"brand": "Bontrager",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "31433",
"name": "Trek Mystic 16" Kids Wheel",
"price": "418.0",
"brand": "Bontrager",
"category": "Bike wheels",
"variant": "greylight",
"list": "More Options",
"position": 10
}
,
{
"id": "31211",
"name": "Trek Precaliber 16 Coaster Brake Wheel",
"price": "418.0",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 11
}
,
{
"id": "31210",
"name": "Trek Precaliber 12 Wheel",
"price": "380.0",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 12
}
,
{
"id": "27029",
"name": "Trek Kids' Quick Release Center Lock Disc 24" Wheel",
"price": "358.0",
"brand": "Bontrager",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 13
}
,
{
"id": "27146",
"name": "Trek Kickster 12" Spoked Wheel",
"price": "158.0",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 14
}
,
{
"id": "26746",
"name": "Trek 26" 儿童自行车轮",
"price": "528.0",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 15
}
,
{
"id": "10652",
"name": "Trek 16" Kids Training Wheels",
"price": "370.0",
"brand": "Bontrager",
"category": "Bike training wheels",
"variant": "black",
"list": "More Options",
"position": 16
}
,
{
"id": "27026",
"name": "Trek 12" 螺栓紧固型儿童自行车轮",
"price": "204.0",
"brand": "Bontrager",
"category": "Bike wheels",
"variant": "greylight",
"list": "More Options",
"position": 17
}
]
}
});
} else {
console.log("dataLayer");
}