if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "46146",
"name": "Top Fuel 9.9 XX AXS Gen 4",
"price": "100800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "46145",
"name": "Top Fuel 9.9 X0 AXS Gen 4",
"price": "88800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "49364",
"name": "第四代Top Fuel 9.9 XTR",
"price": "85800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "gold",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "46161",
"name": "Top Fuel 9.8 XT Gen 4",
"price": "59800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "46147",
"name": "Top Fuel 9.8 GX AXS Gen 4",
"price": "52800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "46143",
"name": "Top Fuel 8 Gen 4",
"price": "29800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greenlight",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "41651",
"name": "Top Fuel 9.9 XX AXS T 型 Gen 3",
"price": "100800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "green",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "41646",
"name": "Top Fuel 9.8 GX AXS T 型 Gen 3",
"price": "52800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "green",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "36790",
"name": "Top Fuel 9.8 XT Gen 3",
"price": "47800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "36789",
"name": "Top Fuel 8 XT Gen 3",
"price": "29800.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}