if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "31980",
"name": "Herrmans MR8 Standard Bike Light Bracket",
"price": "40.0",
"brand": "HERRMANS",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "29079",
"name": "Supernova M99 to Bontrager Elite Light Faceplate Bolt",
"price": "30.0",
"brand": "SUPERNOVA",
"category": "Bike lights",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36428",
"name": "Spanninga Light Bracket for Suntour NEX/CR8",
"price": "30.0",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}