概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "44484",
"name": "Bontrager Betasso RSL GX TLR Gravelタイヤ",
"price": "12900.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "45432",
"name": "Bontrager Girona Pro TLR グラベルタイヤ",
"price": "7900.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "46160",
"name": "Pirelli P ZERO Race TLRロードタイヤ",
"price": "13000.0",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black_greydark",
"list": "More Options",
"position": 3
}
,
{
"id": "38204",
"name": "ピレリ Cinturato グラベル H タイヤ",
"price": "11000.0",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black_brown",
"list": "More Options",
"position": 4
}
,
{
"id": "23611",
"name": "ボントレガー GR2 Team Issue グラベル タイヤ",
"price": "7425.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "24706",
"name": "ボントレガー GR1 Team Issue グラベル タイヤ",
"price": "7425.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "37430",
"name": "Bontrager GR0 Comp Gravel Tire",
"price": "4900.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}