if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "31288",
"name": "トレック 2020 Allant+ 9.9/Diamant Zouma スキッドプレート",
"price": "12500.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "28225",
"name": "Trek Super Commuter Bosch Motor Armor",
"price": "8300.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "31982",
"name": "Trek-Diamant City Chainguard Bracket",
"price": "900.0",
"brand": "Trek-Diamant",
"category": "Bike frame protection",
"variant": "greylight",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}