if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "45510",
"name": "Émonda SL 4",
"price": "17800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41354",
"name": "Émonda SL 7",
"price": "43800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greenlight_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41352",
"name": "Émonda SL 6",
"price": "33800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41366",
"name": "Émonda SL 5",
"price": "21800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36977",
"name": "Émonda SL 6 Pro Di2",
"price": "32800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}