if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "32424",
"name": "トレック フラットヘッドケーブルガイド ファスナー",
"price": "300.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "41171",
"name": "Trek Speed Concept Elbow Pad Mounting Bolt",
"price": "300.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "44781",
"name": "Trek RCS Stem Routing Cover Bolt",
"price": "300.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "41180",
"name": "Trek Speed Concept Stem Faceplate Bolt",
"price": "300.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "41765",
"name": "Trek 2023 Marlin 29 Cable Entry Hole Plug",
"price": "300.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "41183",
"name": "Trek Speed Concept Flippable Head Bolts",
"price": "200.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}