概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "45259",
"name": "Trek Fetch+ 2 Front Pannier Rack",
"price": "14200.0",
"brand": "Trek",
"category": "Bike racks",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "45161",
"name": "Trek Fetch+ 2 Family Pack Seat",
"price": "10100.0",
"brand": "Trek",
"category": "Bike trailers & child seats",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "45162",
"name": "Trek Fetch+ 2 Family Pack Back Rest Pad",
"price": "7200.0",
"brand": "Trek",
"category": "Bike trailers & child seats",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "45462",
"name": "Trek Fetch+ 2 Safari Bar Mounting Kit",
"price": "3800.0",
"brand": "Trek",
"category": "Bike trailers & child seats",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "45258",
"name": "Trek Fetch+ 2 Kicker Bracket Kit",
"price": "1700.0",
"brand": "Trek",
"category": "Bike kickstands",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "45257",
"name": "Trek Fetch+ 2 Kicker Extension Bracket",
"price": "1500.0",
"brand": "Trek",
"category": "Bike kickstands",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "10867",
"name": "トレック Trailer Flags",
"price": "1100.0",
"brand": "Trek",
"category": "Bike trailers & child seats",
"variant": "orange",
"list": "More Options",
"position": 7
}
,
{
"id": "45160",
"name": "Trek Fetch+ 2 Family Pack Seat Base Mount Bracket",
"price": "800.0",
"brand": "Trek",
"category": "Bike trailers & child seats",
"variant": "black",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}