if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "38175",
"name": "100% Ridecamp Mountain Bike Short with Liner",
"price": "79.99",
"brand": "100%",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "38176",
"name": "100% Ridecamp Women's Mountain Bike Short with Liner",
"price": "79.99",
"brand": "100%",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}