概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "41448",
"name": "Trek Flare RT 后车灯",
"price": "398.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "44445",
"name": "Trek Flare R Metro 后车灯",
"price": "138.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "41441",
"name": "Trek Flare R City 后车灯",
"price": "238.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "32185",
"name": "Bontrager Lync Flare 聚焦光束式挡泥板装配后车灯",
"price": "730.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black_red",
"list": "More Options",
"position": 4
}
,
{
"id": "32184",
"name": "Bontrager Lync Flare 宽光束式挡泥板装配后车灯",
"price": "670.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black_red",
"list": "More Options",
"position": 5
}
,
{
"id": "31073",
"name": "Bontrager Lync Flare 车座装配 Focus-beam 后灯",
"price": "560.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "red_black",
"list": "More Options",
"position": 6
}
,
{
"id": "27117",
"name": "BontragerLync Flare 车座装配 Wide-beam 后灯",
"price": "510.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "red_black",
"list": "More Options",
"position": 7
}
,
{
"id": "27463",
"name": "Trek Domane+ Rear Bike Light",
"price": "310.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "31324",
"name": "Supernova License Plate Holder & Taillight",
"price": "1700.0",
"brand": "SUPERNOVA",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "33278",
"name": "Supernova E3 Custom Radius Rear Bike Light",
"price": "561.0",
"brand": "SUPERNOVA",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "35079",
"name": "Herrmans H-Trace Mini Dynamo Rear Light",
"price": "250.0",
"brand": "HERRMANS",
"category": "Bike lights",
"variant": "black_reddark",
"list": "More Options",
"position": 11
}
,
{
"id": "44824",
"name": "Spanninga Pimento XE 50 Rear E-bike Light",
"price": "248.0",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "black_reddark",
"list": "More Options",
"position": 12
}
,
{
"id": "40460",
"name": "TRELOCK Duo Flat E-bike Rear Light",
"price": "220.0",
"brand": "Trelock",
"category": "Bike lights",
"variant": "reddark_white",
"list": "More Options",
"position": 13
}
,
{
"id": "34897",
"name": "Spanninga Pixeo XB Rear Bike Light",
"price": "188.0",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "black_red",
"list": "More Options",
"position": 14
}
,
{
"id": "35942",
"name": "Spanninga Pixeo XE 6V Rear Light",
"price": "180.0",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "black_red",
"list": "More Options",
"position": 15
}
,
{
"id": "41824",
"name": "Spanninga Nr.9 E-bike Rear Light",
"price": "170.0",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "black_red",
"list": "More Options",
"position": 16
}
,
{
"id": "28854",
"name": "Trek-Diamant Solo E-bike Rear Bike Light",
"price": "160.0",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "greylight",
"list": "More Options",
"position": 17
}
,
{
"id": "41825",
"name": "Spanninga Nr.9 XD Dynamo Rear Light",
"price": "160.0",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "black_red",
"list": "More Options",
"position": 18
}
,
{
"id": "44822",
"name": "Spanninga Pimento RR 02 Rear Light Reflector",
"price": "68.0",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "reddark",
"list": "More Options",
"position": 19
}
]
}
});
} else {
console.log("dataLayer");
}