概要
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": "12338",
"name": "トレック 3S チェーンキーパー",
"price": "3800.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "37727",
"name": "Trek Checkpoint SL & SLR Downtube Armor",
"price": "2700.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"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": 4
}
,
{
"id": "33297",
"name": "Trek Checkpoint SL Chainstay Strike Guard",
"price": "1300.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "greylight",
"list": "More Options",
"position": 5
}
,
{
"id": "42148",
"name": "RideWrap グラベル/シクロクロス用フレーム保護フィルム(マット)",
"price": "10965.0",
"brand": "RideWrap",
"category": "Bike frame protection",
"variant": "white",
"list": "More Options",
"position": 6
}
,
{
"id": "42147",
"name": "RideWrap グラベル/シクロクロス用フレーム保護フィルム(グロス)",
"price": "10965.0",
"brand": "RideWrap",
"category": "Bike frame protection",
"variant": "white",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}