概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "32743",
"name": "Trek Circuit 女士骑行背带短裤",
"price": "788.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "47309",
"name": "Rapha 女式 Core 骑行背带短裤",
"price": "1140.0",
"brand": "Rapha",
"category": "Cycling bib shorts",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "47311",
"name": "Rapha 女式 Core 工装骑行短裤",
"price": "1050.0",
"brand": "Rapha",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "32745",
"name": "Trek Circuit 女士骑行短裤",
"price": "738.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "32747",
"name": "Trek Solstice 女式骑行短裤",
"price": "488.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "46758",
"name": "Santini Lidl-Trek RSL 车队背带短裤",
"price": "1680.0",
"brand": "Santini",
"category": "Road bike shorts & bib shorts",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 6
}
,
{
"id": "44125",
"name": "Santini Trek-Segafredo 女式车队车迷版短裤",
"price": "1180.0",
"brand": "Santini",
"category": "Road bike shorts & bib shorts",
"variant": "bluedark",
"list": "More Options",
"position": 7
}
,
{
"id": "45334",
"name": "Santini Lidl-Trek 女款车迷版竞赛短裤",
"price": "1180.0",
"brand": "Santini",
"category": "Road bike shorts & bib shorts",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}