概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "45366",
"name": "Trek 复古徽标拉链男女通用连帽衫",
"price": "688.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "37316",
"name": "Trek 80s Fade Hoodie",
"price": "688.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 2
}
,
{
"id": "37317",
"name": "Trek Diamond Patch Hoodie",
"price": "688.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 3
}
,
{
"id": "45365",
"name": "Trek Acidic Vibe 男女通用连帽衫",
"price": "688.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "black_brown",
"list": "More Options",
"position": 4
}
,
{
"id": "41973",
"name": "Trek Quilted Crewneck 男女通用运动衫",
"price": "658.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "greendark",
"list": "More Options",
"position": 5
}
,
{
"id": "41978",
"name": "Trek Fun Badge Unisex Hoodie",
"price": "658.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "reddark",
"list": "More Options",
"position": 6
}
,
{
"id": "41970",
"name": "Trek Sunset Script Unisex Hoodie",
"price": "658.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 7
}
,
{
"id": "41971",
"name": "Trek Chain Stitch Unisex Hoodie",
"price": "658.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "tan",
"list": "More Options",
"position": 8
}
,
{
"id": "41969",
"name": "Trek Department of Fun Unisex Hoodie",
"price": "658.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 9
}
,
{
"id": "41972",
"name": "Trek Color Block Logo Unisex Hoodie",
"price": "658.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "greendark_tan",
"list": "More Options",
"position": 10
}
,
{
"id": "34751",
"name": "Trek In Bikes We Trust 圆领运动衫",
"price": "598.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "grey",
"list": "More Options",
"position": 11
}
,
{
"id": "36293",
"name": "Trek 复古徽标帽衫",
"price": "598.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "More Options",
"position": 12
}
,
{
"id": "37318",
"name": "Trek Everyone Crewneck Sweatshirt",
"price": "558.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "tan",
"list": "More Options",
"position": 13
}
,
{
"id": "37319",
"name": "Trek Script Crewneck Sweatshirt",
"price": "558.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "greydark",
"list": "More Options",
"position": 14
}
,
{
"id": "37321",
"name": "Trek Bicycle Co. Lightweight Unisex Hoodie",
"price": "458.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 15
}
,
{
"id": "47328",
"name": "Rapha 棉质连帽衫",
"price": "1010.0",
"brand": "Rapha",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "More Options",
"position": 16
}
,
{
"id": "47327",
"name": "Rapha 圆领棉质运动衫",
"price": "850.0",
"brand": "Rapha",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "More Options",
"position": 17
}
,
{
"id": "45019",
"name": "100% Trek Factory Racing 连帽衫",
"price": "638.0",
"brand": "100%",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "More Options",
"position": 18
}
]
}
});
} else {
console.log("dataLayer");
}