if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "35664",
"name": "Crockett Disc 车架组",
"price": "13500.0",
"brand": "Trek",
"category": "Cyclocross bikes",
"variant": "greenlight_pink",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "30480",
"name": "Trek 2020 Crockett 前叉",
"price": "3460.0",
"brand": "Trek",
"category": "Bike forks",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "21681",
"name": "Trek Crockett Gen 2 700c Disc Fork",
"price": "2920.0",
"brand": "Trek",
"category": "Bike forks",
"variant": "white_black",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "38362",
"name": "Trek 2022 Crockett 700c Rigid Fork",
"price": "3890.0",
"brand": "Trek",
"category": "Bike forks",
"variant": "reddark",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "34899",
"name": "Trek Crockett Rigid Fork",
"price": "3070.0",
"brand": "Trek",
"category": "Bike forks",
"variant": "greydark_black",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "42148",
"name": "RideWrap Matte Covered Frame Protection Kit designed to fit 2022 Trek Gravel/CX",
"price": "588.0",
"brand": "RideWrap",
"category": "Bike frame protection",
"variant": "white",
"list": "PRODUCTSEARCH",
"position": 6
}
,
{
"id": "42147",
"name": "RideWrap Gloss Covered Frame Protection Kit designed to fit 2022 Trek Gravel/CX",
"price": "588.0",
"brand": "RideWrap",
"category": "Bike frame protection",
"variant": "white",
"list": "PRODUCTSEARCH",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}