Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "12689",
"name": "Electra Quick Release Seat Collar",
"price": "16.99",
"brand": "Electra",
"category": "Bike seatposts & accessories",
"variant": "greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "12688",
"name": "Electra 28.6mm Seatpost Clamp with Rack Mounts",
"price": "12.99",
"brand": "Electra",
"category": "Bike seatposts & accessories",
"variant": "greylight",
"list": "More Options",
"position": 2
}
,
{
"id": "25889",
"name": "Electra 31.8mm Seatpost Clamp with Rack Mounts",
"price": "12.99",
"brand": "Electra",
"category": "Bike seatposts & accessories",
"variant": "greylight",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}