Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "30193",
"name": "Electra Commuter Mips Bike Helmet",
"price": "89.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "white",
"list": "More Options",
"position": 1
}
,
{
"id": "33700",
"name": "Electra Go! Mips Bike Helmet",
"price": "79.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "More Options",
"position": 2
}
,
{
"id": "21664",
"name": "Electra Commute Mips Bike Helmet",
"price": "76.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "purpledark",
"list": "More Options",
"position": 3
}
,
{
"id": "14461",
"name": "Electra Lifestyle Lux Straight 8 Bike Helmet",
"price": "64.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "black_white",
"list": "More Options",
"position": 4
}
,
{
"id": "14462",
"name": "Electra Lifestyle Lux Tiger Shark Bike Helmet",
"price": "53.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "grey_green",
"list": "More Options",
"position": 5
}
,
{
"id": "34333",
"name": "Electra Mountain Sky Lifestyle Lux Bike Helmet",
"price": "47.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "black_white",
"list": "More Options",
"position": 6
}
,
{
"id": "14730",
"name": "Electra Lifestyle Lux Cool Cat Helmet",
"price": "47.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "pink",
"list": "More Options",
"position": 7
}
,
{
"id": "21685",
"name": "Electra Lifestyle Lux Ace Bike Helmet",
"price": "47.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "33698",
"name": "Electra Lifestyle Lux Solid Colour Helmet",
"price": "35.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "tan",
"list": "More Options",
"position": 9
}
,
{
"id": "34332",
"name": "Electra Gnome Lifestyle Lux Bike Helmet",
"price": "35.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "34245",
"name": "Electra EBC 3000 Lifestyle Bike Helmet",
"price": "31.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "grey",
"list": "More Options",
"position": 11
}
,
{
"id": "35904",
"name": "Electra Ziggy Lifestyle Helmet",
"price": "31.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "tan_blue",
"list": "More Options",
"position": 12
}
,
{
"id": "33561",
"name": "Electra Lifestyle Bike Helmet",
"price": "31.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "orange",
"list": "More Options",
"position": 13
}
,
{
"id": "35905",
"name": "Electra Miami Lifestyle Helmet",
"price": "31.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "teal_pinkdark",
"list": "More Options",
"position": 14
}
,
{
"id": "34244",
"name": "Electra Unicorn Lifestyle Bike Helmet",
"price": "31.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "white",
"list": "More Options",
"position": 15
}
,
{
"id": "35907",
"name": "Electra Slime Lifestyle Helmet",
"price": "23.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "black_green",
"list": "More Options",
"position": 16
}
,
{
"id": "35906",
"name": "Electra Tutti Frutti Lifestyle Helmet",
"price": "23.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "pink",
"list": "More Options",
"position": 17
}
]
}
});
} else {
console.log("dataLayer");
}