if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "36826",
"name": "Dual Sport 3 Gen 5",
"price": "111672.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35104",
"name": "Dual Sport 3 Gen 4",
"price": "104500.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36823",
"name": "Dual Sport 2 Gen 5",
"price": "93407.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35002",
"name": "FX 1 Disc Mid-step Gen 3",
"price": "67221.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}