Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "37084",
"name": "Trek Evoke Mountain Bike Shorts",
"price": "79.99",
"brand": "Trek",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "37085",
"name": "Trek Evoke Women's Mountain Bike Shorts",
"price": "79.99",
"brand": "Trek",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "37090",
"name": "Trek Troslo Liner Shorts",
"price": "31.99",
"brand": "Trek",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "37091",
"name": "Trek Troslo Women's Liner Shorts",
"price": "31.99",
"brand": "Trek",
"category": "Mountain bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "56816",
"name": "Santini Trek Factory Racing Men’s Team Replica Bib Shorts",
"price": "119.99",
"brand": "Santini",
"category": "Mountain bike shorts & bib shorts",
"variant": "bluedark",
"list": "More Options",
"position": 5
}
,
{
"id": "44139",
"name": "Santini Trek Factory Racing Women’s Team Replica Shorts",
"price": "79.99",
"brand": "Santini",
"category": "Mountain bike shorts & bib shorts",
"variant": "bluedark",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}