if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "42266",
"name": "Spanninga Cable Connector Set",
"price": "40.0",
"brand": "Spanninga",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33209",
"name": "Tektro Brake Mount M6 Hardware Bolts",
"price": "30.0",
"brand": "Tektro",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"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
}
,
{
"id": "36832",
"name": "Trek-Diamant Prowheel Crank Preload Bolt",
"price": "40.0",
"brand": "Prowheel",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33317",
"name": "Tektro Front Flat Mount Caliper Bolt",
"price": "30.0",
"brand": "Tektro",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "31980",
"name": "Herrmans MR8 Standard Bike Light Bracket",
"price": "40.0",
"brand": "HERRMANS",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}