概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "30767",
"name": "Trek Precaliber 16 Saddle with Integrated Seatpost",
"price": "6900.0",
"brand": "Trek",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "30768",
"name": "Trek Precaliber 24 Saddle with Integrated Seatpost",
"price": "5600.0",
"brand": "Trek",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "30765",
"name": "Trek Precaliber 20 Saddle with Integrated Seatpost",
"price": "5600.0",
"brand": "Trek",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "28771",
"name": "トレック Kickster キッズ サドル ハンドル付き",
"price": "4200.0",
"brand": "Trek",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}