Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "36009",
"name": "Electra Retrostripe Bar End Mirror",
"price": "29.99",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "30684",
"name": "Electra Bar End Mirror",
"price": "21.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "pinklight",
"list": "More Options",
"position": 2
}
,
{
"id": "36007",
"name": "Electra Ziggy Bar End Mirror",
"price": "21.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "tan_blue",
"list": "More Options",
"position": 3
}
,
{
"id": "36008",
"name": "Electra Sun Rays Bar End Mirror",
"price": "21.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "tan_yellow",
"list": "More Options",
"position": 4
}
,
{
"id": "36006",
"name": "Electra Gnome Bar End Mirror",
"price": "21.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "12663",
"name": "Electra Cruiser Handlebar Mirror",
"price": "14.99",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}