if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "33312",
"name": "100% Ridecamp Women's Mountain Bike Glove",
"price": "24.99",
"brand": "100%",
"category": "Full finger cycling gloves",
"variant": "black_grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35362",
"name": "100% Hydromatic Mountain Bike Glove",
"price": "39.99",
"brand": "100%",
"category": "Full finger cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33311",
"name": "100% Ridecamp Youth Mountain Bike Glove",
"price": "24.99",
"brand": "100%",
"category": "Full finger cycling gloves",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}