if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "47071",
"name": "Checkpoint SL 5 AXS Gen 3",
"price": "594000.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red_greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35169",
"name": "Checkpoint SL 5",
"price": "339312.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "grey_greydark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}