Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "35601",
"name": "Cruiser 3i Step-Thru",
"price": "599.93",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "redlight",
"list": "More Options",
"position": 1
}
,
{
"id": "35600",
"name": "Cruiser 3i Step-Over",
"price": "599.93",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "35599",
"name": "Cruiser 7D Step-Thru",
"price": "499.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "orangelight",
"list": "More Options",
"position": 3
}
,
{
"id": "35597",
"name": "Cruiser 1 Step-Thru",
"price": "399.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "pinklight",
"list": "More Options",
"position": 4
}
,
{
"id": "35578",
"name": "Cruiser 1 Step-Over",
"price": "399.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "greendark",
"list": "More Options",
"position": 5
}
,
{
"id": "24579",
"name": "Super Deluxe Tandem 7i",
"price": "1599.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "blue_white",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}