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": "CATEGORY",
"position": 1
}
,
{
"id": "44151",
"name": "Electra Valve Caps Planets",
"price": "3.93",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "44149",
"name": "Electra Valve Caps Enchanted Jungle",
"price": "3.93",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "purple",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "44152",
"name": "Electra Valve Caps Cyclosaurus",
"price": "3.93",
"brand": "Electra",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "green",
"list": "CATEGORY",
"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": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}