Yleistä
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "32738",
"name": "Trek Velocis Cycling Bib Short",
"price": "109.99",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "32742",
"name": "Trek Circuit Cycling Bib Short",
"price": "84.99",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "48799",
"name": "Rapha Core Cargo Cycling Bib Short",
"price": "158.0",
"brand": "Rapha",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "47310",
"name": "Rapha Core Cargo Cycling Short",
"price": "121.0",
"brand": "Rapha",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "34659",
"name": "Trek Solstice Cycling Bib Short",
"price": "64.99",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "32746",
"name": "Trek Solstice Cycling Short",
"price": "44.99",
"brand": "Trek",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "56742",
"name": "Santini Lidl-Trek RSL Team Bib Short",
"price": "169.99",
"brand": "Santini",
"category": "Road bike shorts & bib shorts",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 7
}
,
{
"id": "56744",
"name": "Santini Lidl-Trek Replica Race Bib Short",
"price": "119.99",
"brand": "Santini",
"category": "Road bike shorts & bib shorts",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 8
}
,
{
"id": "13446",
"name": "Bontrager Velocis Thermal inForm Cycling Bib Short",
"price": "101.49",
"brand": "Bontrager",
"category": "Road bike shorts & bib shorts",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "45332",
"name": "Santini Lidl-Trek Replica Race Bib Short",
"price": "95.99",
"brand": "Santini",
"category": "Road bike shorts & bib shorts",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 10
}
,
{
"id": "27187",
"name": "Bontrager Adventure Cycling Short",
"price": "24.0",
"brand": "Bontrager",
"category": "Road bike shorts & bib shorts",
"variant": "grey",
"list": "More Options",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}