if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "36995",
"name": "Dual Sport 2 Equipped Gen 5",
"price": "925.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36823",
"name": "Dual Sport 2 Gen 5",
"price": "650.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40826",
"name": "Dual Sport 3 Gen 5",
"price": "975.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40508",
"name": "Dual Sport 2 Equipped Gen 5",
"price": "875.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40511",
"name": "Dual Sport 2 Mid-step Gen 5",
"price": "875.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40824",
"name": "Dual Sport 2 Gen 5",
"price": "750.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "40823",
"name": "Dual Sport 1 Gen 5",
"price": "660.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "40503",
"name": "Dual Sport 3 Equipped Mid-step Gen 5",
"price": "1100.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "40502",
"name": "Dual Sport 3 Equipped Gen 5",
"price": "1100.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "36824",
"name": "Dual Sport 1 Gen 5",
"price": "550.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}