Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "44558",
"name": "Electra Ponto Go! Frame Bag",
"price": "99.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "40646",
"name": "Electra Triangle Frame Bag",
"price": "79.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "35896",
"name": "Electra Ziggy Phone Bag",
"price": "44.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "brown_blue",
"list": "More Options",
"position": 3
}
,
{
"id": "40318",
"name": "Electra Coral Reef Phone Bag",
"price": "44.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "tan",
"list": "More Options",
"position": 4
}
,
{
"id": "33770",
"name": "Electra Leopard Phone Bag",
"price": "44.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "white_purplelight",
"list": "More Options",
"position": 5
}
,
{
"id": "35897",
"name": "Electra Miami Phone Bag",
"price": "44.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "teal_pinkdark",
"list": "More Options",
"position": 6
}
,
{
"id": "33771",
"name": "Electra Heather Charcoal Phone Bag",
"price": "44.93",
"brand": "Electra",
"category": "Bike bags",
"variant": "greydark",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}