概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "35019",
"name": "ボントレガー RSL MTB ハンドルバー/ステム",
"price": "69900.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "13432",
"name": "ボントレガー Kovee Pro Carbon 35 MTB ハンドルバー",
"price": "22900.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "greydark",
"list": "More Options",
"position": 2
}
,
{
"id": "24528",
"name": "Bontrager Comp 31.8 MTB Handlebar",
"price": "6900.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "09171",
"name": "ボントレガー Satellite Plus IsoZone & inForm Satellite MTB ハンドルバー システム",
"price": "12900.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "35282",
"name": "Bontrager Approved 31.8 Matte Alloy MTB Handlebar",
"price": "3800.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "35283",
"name": "Bontrager Approved 31.8 Low-Rise Matte Alloy MTB Handlebar",
"price": "3800.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}