概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "34037",
"name": "Trek Commuter Pro RT 前车灯",
"price": "1280.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "34035",
"name": "Trek Commuter Comp R Front Bike Light",
"price": "548.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "41444",
"name": "Trek Ion Pro RT 前车灯",
"price": "898.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "27821",
"name": "Bontrager Ion Elite R 前车灯",
"price": "798.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "grey",
"list": "More Options",
"position": 4
}
,
{
"id": "30762",
"name": "Bontrager Ion Comp R 前车灯",
"price": "598.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "grey",
"list": "More Options",
"position": 5
}
,
{
"id": "41449",
"name": "Trek Ion 200 RT 前车灯",
"price": "398.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "44446",
"name": "Trek Ion 50 R 前车灯",
"price": "138.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "41442",
"name": "Trek Ion 100 R 前车灯",
"price": "238.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "27422",
"name": "Trek Domane+ 前车灯",
"price": "2500.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "27118",
"name": "BontragerLync Ion 把立装配 Steady-beam 前灯",
"price": "1660.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black_white",
"list": "More Options",
"position": 10
}
,
{
"id": "41377",
"name": "Bontrager Lync Ion BES3 Front Light",
"price": "1610.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 11
}
,
{
"id": "31071",
"name": "Supernova M99 Pro Front Bike Light",
"price": "4500.0",
"brand": "SUPERNOVA",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 12
}
,
{
"id": "31072",
"name": "Supernova M99 Pure+ Front Bike Light",
"price": "3500.0",
"brand": "SUPERNOVA",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 13
}
,
{
"id": "45281",
"name": "Herrmans Nordic MR9-E Front Bike Light",
"price": "780.0",
"brand": "HERRMANS",
"category": "Bike lights",
"variant": "black_white",
"list": "More Options",
"position": 14
}
,
{
"id": "29076",
"name": "AXA Blueline50 Dynamo Front Bike Light Kit",
"price": "650.0",
"brand": "AXA",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 15
}
,
{
"id": "45270",
"name": "Herrmans MR8 E-bike Front Light Top Mount For PCB Connector",
"price": "480.0",
"brand": "HERRMANS",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 16
}
,
{
"id": "31979",
"name": "Herrmans MR8 E-bike Front Bike Light",
"price": "390.0",
"brand": "HERRMANS",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 17
}
,
{
"id": "25644",
"name": "Spanninga Kendo XD Dynamo Front Light",
"price": "290.0",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 18
}
,
{
"id": "36220",
"name": "Spanninga Kendo XE 6-36VDC E-bike Front Bike Light",
"price": "270.0",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 19
}
]
}
});
} else {
console.log("dataLayer");
}