概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "32738",
"name": "Trek Velocis 骑行背带短裤",
"price": "988.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "32742",
"name": "Trek Circuit 骑行背带短裤",
"price": "788.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "47301",
"name": "Rapha Pro Team II 骑行背带短裤",
"price": "2580.0",
"brand": "Rapha",
"category": "Cycling bib shorts",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "47337",
"name": "Rapha Pro Team 女式训练骑行短裤",
"price": "1840.0",
"brand": "Rapha",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "47307",
"name": "Rapha Pro Team 训练骑行背带短裤",
"price": "1840.0",
"brand": "Rapha",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "48799",
"name": "Rapha Core 工装骑行背带短裤",
"price": "1450.0",
"brand": "Rapha",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "47308",
"name": "Rapha Core 骑行背带短裤",
"price": "1140.0",
"brand": "Rapha",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "47310",
"name": "Rapha Core 工装骑行短裤",
"price": "1050.0",
"brand": "Rapha",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "32744",
"name": "Trek Circuit 骑行短裤",
"price": "688.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "34659",
"name": "Trek Solstice 骑行背带短裤",
"price": "688.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "32746",
"name": "Trek Solstice 骑行短裤",
"price": "488.0",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 11
}
,
{
"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": 12
}
,
{
"id": "56742",
"name": "Santini Lidl-Trek RSL 车队背带短裤",
"price": "1680.0",
"brand": "Santini",
"category": "Road bike shorts & bib shorts",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 13
}
,
{
"id": "45332",
"name": "Santini Lidl-Trek 车迷版竞赛背带短裤",
"price": "1180.0",
"brand": "Santini",
"category": "Road bike shorts & bib shorts",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 14
}
,
{
"id": "56744",
"name": "Santini Lidl-Trek 车迷版竞赛背带短裤",
"price": "1180.0",
"brand": "Santini",
"category": "Road bike shorts & bib shorts",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 15
}
]
}
});
} else {
console.log("dataLayer");
}