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