概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "35061",
"name": "ボントレガー TLR リム テープ",
"price": "6900.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "14221",
"name": "ボントレガー TLR リム テープ",
"price": "2700.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "31426",
"name": "ボントレガー TLR リム ストリップ",
"price": "1527.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "white",
"list": "More Options",
"position": 3
}
,
{
"id": "31421",
"name": "Bontrager Race X Lite Rim Brake TLR Rim Strip",
"price": "1527.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "11669",
"name": "ボントレガー ハイプレッシャー ワイド リム ストリップ",
"price": "1100.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "white",
"list": "More Options",
"position": 5
}
,
{
"id": "40481",
"name": "Trek-Diamant Presta Rim Strip",
"price": "1100.0",
"brand": "Trek-Diamant",
"category": "Bike rims & accessories",
"variant": "red",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}