if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "41012",
"name": "Marlin+ 6",
"price": "429000.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
]
}
});
} else {
console.log("dataLayer");
}