Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "44150",
"name": "Electra Valve Caps Soft Serve",
"price": "3.93",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "white",
"list": "More Options",
"position": 1
}
,
{
"id": "44149",
"name": "Electra Valve Caps Enchanted Jungle",
"price": "3.93",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "purple",
"list": "More Options",
"position": 2
}
,
{
"id": "44151",
"name": "Electra Valve Caps Planets",
"price": "3.93",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "44152",
"name": "Electra Valve Caps Cyclosaurus",
"price": "3.93",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "green",
"list": "More Options",
"position": 4
}
,
{
"id": "44148",
"name": "Electra Valve Caps Sun Shimmer",
"price": "3.93",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "white",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}