Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "36009",
"name": "Electra Retrostripe Bar End Mirror",
"price": "39.99",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "36008",
"name": "Electra Sun Rays Bar End Mirror",
"price": "29.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "tan_yellow",
"list": "More Options",
"position": 2
}
,
{
"id": "30684",
"name": "Electra Bar End Mirror",
"price": "29.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "pinklight",
"list": "More Options",
"position": 3
}
,
{
"id": "36006",
"name": "Electra Gnome Bar End Mirror",
"price": "29.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "12663",
"name": "Electra Cruiser Handlebar Mirrors",
"price": "19.99",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "21642",
"name": "Electra Swirl Cruiser Handlebar Mirror",
"price": "6.93",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "white",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}