Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "35599",
"name": "Cruiser 7D Step-Thru",
"price": "499.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "orangelight",
"list": "More Options",
"position": 1
}
,
{
"id": "24425",
"name": "Cruiser 7D Step-Over",
"price": "449.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "bronze",
"list": "More Options",
"position": 2
}
,
{
"id": "24430",
"name": "Cruiser 7D Step-Thru",
"price": "449.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "bronze",
"list": "More Options",
"position": 3
}
,
{
"id": "35598",
"name": "Cruiser 7D Step-Over",
"price": "399.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "24423",
"name": "Cruiser 1 Step-Over",
"price": "399.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "35656",
"name": "Cruiser 1 Step-Over",
"price": "399.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "35657",
"name": "Cruiser 1 Step-Thru",
"price": "249.99",
"brand": "Electra",
"category": "Cruiser bikes",
"variant": "pinklight",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}