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": "36008",
"name": "Electra Sun Rays Bar End Mirror",
"price": "21.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "tan_yellow",
"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": "36006",
"name": "Electra Gnome Bar End Mirror",
"price": "21.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "12663",
"name": "Electra Cruiser Handlebar Mirror",
"price": "14.99",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}