概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "35041",
"name": "Trek RSLマウンテンバイクシューズ",
"price": "69900.0",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "45271",
"name": "Trek Cambionマウンテンバイクシューズ",
"price": "49900.0",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "45272",
"name": "Trek Forayマウンテンバイクシューズ",
"price": "29900.0",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "34130",
"name": "ボントレガー Foray マウンテンバイク シューズ",
"price": "21675.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "34129",
"name": "ボントレガー Evoke マウンテンバイク シューズ",
"price": "20315.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "34790",
"name": "ボントレガー Flatline マウンテンバイク シューズ",
"price": "9685.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "24883",
"name": "ボントレガー Rally マウンテンバイク シューズ",
"price": "5900.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "grey_black",
"list": "More Options",
"position": 7
}
,
{
"id": "34789",
"name": "ボントレガー Quantum マウンテンバイク シューズ",
"price": "4700.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "black",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}