概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "37096",
"name": "Trek Velocis 双泡沫男女通用骑行手套",
"price": "388.0",
"brand": "Trek",
"category": "Fingerless cycling gloves",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "37097",
"name": "Trek Circuit 双凝胶男女通用骑行手套",
"price": "288.0",
"brand": "Trek",
"category": "Fingerless cycling gloves",
"variant": "yellowvisibility",
"list": "More Options",
"position": 2
}
,
{
"id": "37099",
"name": "Trek Solstice 凝胶男女通用骑行手套",
"price": "228.0",
"brand": "Trek",
"category": "Fingerless cycling gloves",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "34504",
"name": "Bontrager Velocis 双泡沫骑行手套",
"price": "338.0",
"brand": "Bontrager",
"category": "Fingerless cycling gloves",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "37509",
"name": "Santini Trek-Segafredo 男式车队版骑行手套",
"price": "278.0",
"brand": "Santini",
"category": "Fingerless cycling gloves",
"variant": "red",
"list": "More Options",
"position": 5
}
,
{
"id": "34505",
"name": "Bontrager Circuit 双凝胶骑行手套",
"price": "258.0",
"brand": "Bontrager",
"category": "Fingerless cycling gloves",
"variant": "red",
"list": "More Options",
"position": 6
}
,
{
"id": "34510",
"name": "Bontrager Circuit 女士双凝胶骑行手套",
"price": "258.0",
"brand": "Bontrager",
"category": "Fingerless cycling gloves",
"variant": "black",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}