概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "23032",
"name": "Trek Checkpoint Carbon Armor",
"price": "8000.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "26161",
"name": "Trek Madone/Émonda SLR Chainkeeper",
"price": "5100.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "34426",
"name": "Trek Madone 9 Aero Chainkeeper",
"price": "4300.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "12338",
"name": "トレック 3S チェーンキーパー",
"price": "3800.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "37727",
"name": "Trek Checkpoint SL & SLR Downtube Armor",
"price": "2700.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "37599",
"name": "Trek Checkpoint SL & SLR Gen 2 Chainstay Armor",
"price": "1700.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "33297",
"name": "Trek Checkpoint SL Chainstay Strike Guard",
"price": "1300.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "greylight",
"list": "More Options",
"position": 7
}
,
{
"id": "10282",
"name": "トレック カーボン Road Frame チェーンステー ストライク プレート",
"price": "1300.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "grey",
"list": "More Options",
"position": 8
}
,
{
"id": "28423",
"name": "トレック Boone CX チェーンステー アーマー",
"price": "1200.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "28332",
"name": "トレック P1 Road チェーンステー プロテクター",
"price": "1200.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "grey",
"list": "More Options",
"position": 10
}
,
{
"id": "42147",
"name": "RideWrap グラベル/シクロクロス用フレーム保護フィルム(グロス)",
"price": "10965.0",
"brand": "RideWrap",
"category": "Bike frame protection",
"variant": "white",
"list": "More Options",
"position": 11
}
,
{
"id": "42148",
"name": "RideWrap グラベル/シクロクロス用フレーム保護フィルム(マット)",
"price": "10965.0",
"brand": "RideWrap",
"category": "Bike frame protection",
"variant": "white",
"list": "More Options",
"position": 12
}
]
}
});
} else {
console.log("dataLayer");
}