Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "36607",
"name": "Sprocket 1 20"",
"price": "389.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "orange",
"list": "More Options",
"position": 1
}
,
{
"id": "36605",
"name": "Sprocket 1 16"",
"price": "359.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "yellow",
"list": "More Options",
"position": 2
}
,
{
"id": "35411",
"name": "EBC 3000 Sprocket 20"",
"price": "349.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "35410",
"name": "Cat's Meow Sprocket 20"",
"price": "349.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "white",
"list": "More Options",
"position": 4
}
,
{
"id": "35413",
"name": "Super Sprocket 16"",
"price": "329.99",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "blue",
"list": "More Options",
"position": 5
}
,
{
"id": "23081",
"name": "Sprocket 1 16"",
"price": "299.93",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "23094",
"name": "Sprocket 1 16"",
"price": "299.93",
"brand": "Electra",
"category": "Electra kids' bikes",
"variant": "green",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}