Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "12223",
"name": "Trek Speed Concept Upper Headset Bearing",
"price": "39.99",
"brand": "Trek",
"category": "Bearings",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "37487",
"name": "Trek 2022 Rail 9.9 / 9.8 29 1.8" Lower Headset Bearing",
"price": "29.99",
"brand": "Trek",
"category": "Bearings",
"variant": "greylight",
"list": "More Options",
"position": 2
}
,
{
"id": "26048",
"name": "Trek Integrated BB90 Shimano V2 Oversized Bottom Bracket Bearing",
"price": "27.99",
"brand": "Trek",
"category": "Bearings",
"variant": "grey",
"list": "More Options",
"position": 3
}
,
{
"id": "26270",
"name": "Balero E2 FSA inferior de juego de dirección de Trek 36 grados",
"price": "27.99",
"brand": "Trek",
"category": "Bearings",
"variant": "greylight",
"list": "More Options",
"position": 4
}
,
{
"id": "28924",
"name": "FSA 1-1/8" Upper Headset Bearing",
"price": "12.99",
"brand": "Trek",
"category": "Bearings",
"variant": "greylight",
"list": "More Options",
"position": 5
}
,
{
"id": "40021",
"name": "Bontrager 18307 LLH Replacement Hub Bearing",
"price": "29.99",
"brand": "Bontrager",
"category": "Bearings",
"variant": "greylight",
"list": "More Options",
"position": 6
}
,
{
"id": "39582",
"name": "Bontrager 6903 LLH Replacement Hub Bearing",
"price": "14.0",
"brand": "Bontrager",
"category": "Bearings",
"variant": "greylight",
"list": "More Options",
"position": 7
}
,
{
"id": "40010",
"name": "Bontrager 6902 LLH Replacement Hub Bearing",
"price": "12.99",
"brand": "Bontrager",
"category": "Bearings",
"variant": "greylight",
"list": "More Options",
"position": 8
}
,
{
"id": "28146",
"name": "Bontrager 6000 LLB Replacement Hub Bearing",
"price": "8.0",
"brand": "Bontrager",
"category": "Bearings",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "28913",
"name": "FSA Oversized Headset Bearing",
"price": "15.99",
"brand": "FSA",
"category": "Bearings",
"variant": "greylight",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}