{"id":1302,"date":"2021-07-31T22:48:48","date_gmt":"2021-07-31T20:48:48","guid":{"rendered":"https:\/\/www.lofer.com\/online-shop\/"},"modified":"2022-02-03T13:29:31","modified_gmt":"2022-02-03T12:29:31","slug":"online-shop","status":"publish","type":"page","link":"https:\/\/www.lofer.com\/en\/online-shop","title":{"rendered":"Online shop"},"content":{"rendered":"        <script>\n            var body = document.body;\n            var header = document.getElementById(\"zeile1\");\n            body.classList.add(\"pwOnlineShop\");\n            header.classList.add(\"pwfixed\");\n\t\t\t            window.dw = window.dw || function () {\n                (dw.q = dw.q || []).push(arguments)\n            };\n\n            dw('settings', 'cea18939-38ce-4b04-88cc-1423206ccdb0',\n                {\n                    \"context\": {\n\t\t\t\t\t\t                        \"targetRoute\": [\"\/experiences\"]\n                    },\n                    \"lang\": \"en\",\n                    \"target\": \"tosc5target\",\n                    \"baseHref\": \"\/en\/online-shop\/\",\n                    \"allowScrollOnApplicationStart\": false,\n\t\t\t\t\t                                    }\n            );\n\n            var conf = {\n                \"IBEname\": \"SAALACHTAL\",\n                \"tagID\": \"cea18939-38ce-4b04-88cc-1423206ccdb0\",\n                \"trackingUrlBase\": \"\\\/de\\\/unterkuenfte-angebote\\\/\",\n                \"trackPages\": {\n                    \"100\": true,\n                    \"101\": true,\n                    \"102\": false,\n                    \"103\": false,\n                    \"104\": false,\n                    \"105\": false,\n                    \"108\": false,\n                    \"9900\": true,\n                    \"9901\": true\n                },\n                \"trackEvents\": {\"0\": true, \"1\": true, \"2\": true, \"4\": true, \"5\": true, \"6\": true, \"7\": false, \"10\": true, \"11\": true},\n                \"enhancedEC\": true,\n                \/\/\"eventsName\": \"vEvent\",\n                \"debug\": true\n            };\n\n            \/\/ Set or overtake dataLayer\n            window.dataLayer = window.dataLayer || [];\n\n            \/\/ Check Debug URL param\n            if (window.location.href.match(\/feratelDebug=1\/)) {\n                conf.debug = true;\n            }\n\n            \/\/ Help function to decode URL parts\n            let trURLencode = function (urlpart) {\n                if (typeof urlpart != 'string') return '';\n                urlpart = urlpart.replace(\/\u00e4\/gi, 'ae');\n                urlpart = urlpart.replace(\/\u00f6\/gi, 'oe');\n                urlpart = urlpart.replace(\/\u00fc\/gi, 'ue');\n                urlpart = urlpart.replace(\/\u00df\/gi, 'ss');\n                urlpart = urlpart.replace(\/ \/gi, '-');\n                return encodeURI(urlpart).toLowerCase();\n            };\n            \/\/ Help function to rewrite a date\n            let trDATErewrite = function (dateobj) {\n                if (typeof dateobj != 'object' && typeof dateobj != 'string') return '';\n                if (typeof dateobj == 'object') dateobj.setMinutes(dateobj.getMinutes() + (dateobj.getTimezoneOffset() * -1));\n                let datestr = typeof dateobj == 'object' ? dateobj.toISOString() : dateobj;\n                return datestr.replace(\/T.*$\/, '');\n            };\n\n            \/\/ Pageview Based Tracking\n            dw('onPageLoad', conf.tagID, function (e) {\n                let doTrack = false;\n                \/\/ Set Tracking URL and set doTrack\n                \/* --> URL structure documentation <--\n\t\t\t\t   \/LANGUAGE\/LABELLING\/PAGETYPE\/OTHERSTUFF\/\n\t\t\t\t\t --> LANGUAGE:   depends von the variable e.lang, sample values: '\/de\/' or '\/en\/'\n\t\t\t\t\t --> LABELLING:  depends on variable trURL, sample values: 'unterkuenfte\/' or 'accomendation'\n\t\t\t\t\t --> PAGETYPE:   depends on TOSC5 pageType variable, sample values: 'search\/' or 'object\/'\n\t\t\t\t\t --> OTHERSTUFF: something else, sample value: 'berlin-hotel-gabi\/'\n\t\t\t\t   e.g.: \/de\/unterkuenfte\/eventlist\/\n\t\t\t\t   e.g.: \/de\/unterkuenfte\/object\/berlin-hotel-gabi\/\n\t\t\t\t*\/\n                let trURL = conf.trackingUrlBase;\n                switch (e.pageType) {\n                    case  100:\n                        if (conf.trackPages['100']) {\n                            doTrack = true;\n                            trURL += 'unterkuenfte\/';\n                        }\n                        break; \/\/ Unterkunftsliste\/suche\n                    case  101:\n                        if (conf.trackPages['101']) {\n                            doTrack = true;\n                            trURL += 'object\/' + trURLencode(e.spTown) + '-' + trURLencode(e.spName) + '-' + trURLencode(e.pageTitle) + '\/';\n                            dataLayer.push({ecommerce: null}); \/\/ Clear the previous ecommerce object.\n                            dataLayer.push({\n                                event: \"view_item\",\n                                ecommerce: {\n                                    items: [{\n                                        item_id: e.spId,\n                                        item_name: e.spName,\n                                    }]\n                                }\n                            });\n                        }\n                        break; \/\/ Unterkunfts-Detailansicht\n                    case  102:\n                        if (conf.trackPages['102']) {\n                            doTrack = true;\n                            trURL += 'services\/';\n                        }\n                        break; \/\/ Zusatzleistungsliste\/suche\n                    case  103:\n                        if (conf.trackPages['103']) {\n                            doTrack = true;\n                            trURL += 'services\/' + trURLencode(e.spTown) + '-' + trURLencode(e.spName) + '-' + trURLencode(e.pageTitle) + '\/';\n                            event = 'view_item';\n                        }\n                        break; \/\/ Zusatzleistungs-Detailansicht\n                    case  104:\n                        if (conf.trackPages['104']) {\n                            doTrack = true;\n                            trURL += 'eventlist\/';\n                        }\n                        break; \/\/ Veranstaltungsliste\n                    case  105:\n                        if (conf.trackPages['105']) {\n                            doTrack = true;\n                            trURL += 'event\/' + trURLencode(e.pageTitle);\n                        }\n                        break; \/\/ Veranstaltungs-Details\n                    case  108:\n                        if (conf.trackPages['108']) {\n                            doTrack = true;\n                            trURL += 'brochurelist\/';\n                        }\n                        break; \/\/ Prospektliste\n                    case 9900:\n                        if (conf.trackPages['9900']) {\n                            doTrack = true;\n                            trURL += 'checkout\/data\/';\n                        }\n                        dataLayer.push({ ecommerce: null });  \/\/ Clear the previous ecommerce object.\n                        \/\/ create array which contains objects for the items key of the ecommerce object\n                        var ecProducts = [];\n                        \/\/ iterate over e.shoppingCart.bookingInformation.items and create an object for each item\n                        var accommodationItems = e.shoppingCart.items.accommodationItems;\n                        for (let i = 0; i < accommodationItems.length; i++) {\n                           var item = {\n                                item_id: accommodationItems[i].serviceProvider.id,\n                                item_name: accommodationItems[i].serviceProvider.name,\n                                index: 0,\n                                item_variant: accommodationItems[i].product.name,\n                                price: accommodationItems[i].price.totalPrice,\n                                quantity: 1\n                            };\n                            \/\/ push the object to the ecProducts array\n                            ecProducts.push(item);\n                        }\n                        dataLayer.push({\n                            event: \"begin_checkout\",\n                            ecommerce: {\n                                currency: \"EUR\",\n                                value: e.shoppingCart.bookingInformation.prices.totalAmount,\n                                items: ecProducts\n                            }\n                        });\n                        break; \/\/ Kundendaten-Eingabe (Warenkorb)\n                    case 9901:\n                        if (conf.trackPages['9901']) {\n                            doTrack = true;\n                            trURL += 'checkout\/ack\/';\n                        }\n                        dataLayer.push({ ecommerce: null });  \/\/ Clear the previous ecommerce object.\n                        var ecProducts = [];\n                        var accommodationItems = e.bookingConfirmation.items.accommodations;\n                        for (let i = 0; i < accommodationItems.length; i++) {\n                            var item = {\n                                item_id: accommodationItems[i].serviceProvider.productId,\n                                item_name: accommodationItems[i].serviceProvider.name,\n                                index: 0,\n                                item_variant: accommodationItems[i].product.name,\n                                price: accommodationItems[i].price,\n                                quantity: 1\n                            };\n                            \/\/ push the object to the ecProducts array\n                            ecProducts.push(item);\n                        }\n                        dataLayer.push({\n                            event: \"purchase\",\n                            ecommerce: {\n                                transaction_id: e.bookingConfirmation.transactionId,\n                                value: e.bookingConfirmation.totalAmount,\n                                tax: e.bookingConfirmation.visitorTax,\n                                currency: \"EUR\",\n                                items: ecProducts\n                            }\n                        });\n                        break; \/\/ Buchungsbest\u00e4tigung\n                }\n                \/\/ Pageview Tracking\n                if (doTrack) {\n                    window.dataLayer.push({'event': 'vPageview', 'page': trURL, 'pageType': e.pageType, 'pageTitle': e.pageTitle, 'ibe': conf.IBEname});\n                }\n                \/\/ Cart Tracking\n                if (doTrack && e.pageType == 9900) {\n                    let ecProducts = [];\n                    \/\/ Accommodation Tracking\n                    if (typeof e.shoppingCart.items.accommodationItems == 'object' && e.shoppingCart.items.accommodationItems.length > 0) {\n                        for (let i = 0; i < e.shoppingCart.items.accommodationItems.length; i++) {\n                            let ecTmpProduct = {};\n                            ecTmpProduct.id = e.shoppingCart.items.accommodationItems[i].product.id;\n                            ecTmpProduct.name = e.shoppingCart.items.accommodationItems[i].product.name;\n                            ecTmpProduct.brand = e.shoppingCart.items.accommodationItems[i].serviceProvider.name;\n                            ecTmpProduct.category = conf.IBEname + ' | Accommodation Cart';\n                            ecTmpProduct.price = e.shoppingCart.items.accommodationItems[i].price.totalPrice;\n                            ecTmpProduct.quantity = e.shoppingCart.items.accommodationItems[i].units;\n                            if (ecTmpProduct.quantity > 1 && ecTmpProduct.price != e.shoppingCart.bookingInformation.prices.totalAmount) ecTmpProduct.price = ecTmpProduct.price \/ ecTmpProduct.quantity;\n                            ecTmpProduct.dateFrom = trDATErewrite(e.shoppingCart.items.accommodationItems[i].arrivalDate);\n                            ecTmpProduct.dateTo = trDATErewrite(e.shoppingCart.items.accommodationItems[i].departureDate);\n                            ecTmpProduct.adults = e.shoppingCart.items.accommodationItems[i].occupancy.adults;\n                            ecTmpProduct.childs = e.shoppingCart.items.accommodationItems[i].occupancy.children.childrenAges.length;\n                            ecProducts.push(ecTmpProduct);\n                        }\n                        let trECobject = null;\n                        if (conf.enhancedEC) {\n                            window.dataLayer.push({ecommerce: null});\n                            trECobject = {'checkout': {'actionField': {'step': 1}, 'products': ecProducts}};\n                        }\n                        window.dataLayer.push({\n                            'event': 'checkout',\n                            'transactionType': e.shoppingCart.transactionType,\n                            'totalAmount': e.shoppingCart.bookingInformation.prices.totalAmount,\n                            'bookingFee': e.shoppingCart.bookingInformation.prices.totalBookingFeeAmount,\n                            'visitorTax': e.shoppingCart.bookingInformation.prices.totalVisitorTaxAmount,\n                            'dateFrom': trDATErewrite(e.shoppingCart.items.accommodationItems[0].arrivalDate),\n                            'dateTo': trDATErewrite(e.shoppingCart.items.accommodationItems[0].departureDate),\n                            'ecommerce': trECobject,\n                            'ibe': conf.IBEname,\n                            'shoppingCart': conf.debug ? e.shoppingCart : {}\n                        });\n                    }\n                    \/\/ Additional Service Tracking\n                    if (typeof e.shoppingCart.items.additionalServiceItems == 'object' && e.shoppingCart.items.additionalServiceItems.length > 0) {\n                        for (let i = 0; i < e.shoppingCart.items.additionalServiceItems.length; i++) {\n                            let ecTmpProduct = {};\n                            if (typeof e.shoppingCart.items.additionalServiceItems[i].productId == 'string') ecTmpProduct.id = e.shoppingCart.items.additionalServiceItems[i].productId;\n                            ecTmpProduct.type = e.shoppingCart.items.additionalServiceItems[i].product.name;\n                            ecTmpProduct.owner = e.shoppingCart.items.additionalServiceItems[i].product.owner;\n                            ecTmpProduct.name = e.shoppingCart.items.additionalServiceItems[i].product.name;\n                            if (typeof e.shoppingCart.items.additionalServiceItems[i].service == 'object' && typeof e.shoppingCart.items.additionalServiceItems[i].service.name == 'string') ecTmpProduct.name = ecTmpProduct.name + ' | ' + e.shoppingCart.items.additionalServiceItems[i].service.name;\n                            if (typeof e.shoppingCart.items.additionalServiceItems[i].serviceProvider == 'object' && typeof e.shoppingCart.items.additionalServiceItems[i].serviceProvider.name == 'string') ecTmpProduct.brand = e.shoppingCart.items.additionalServiceItems[i].serviceProvider.name;\n                            ecTmpProduct.category = conf.IBEname + ' | Additional Service Cart';\n                            if (typeof e.shoppingCart.items.additionalServiceItems[i].price.totalPrice == 'string' || typeof e.shoppingCart.items.additionalServiceItems[i].price.totalPrice == 'number') {\n                                ecTmpProduct.price = e.shoppingCart.items.additionalServiceItems[i].price.totalPrice;\n                            } else if (typeof e.shoppingCart.items.additionalServiceItems[i].price == 'string' || typeof e.shoppingCart.items.additionalServiceItems[i].price == 'number') {\n                                ecTmpProduct.price = e.shoppingCart.items.additionalServiceItems[i].price;\n                            }\n                            ecTmpProduct.quantity = e.shoppingCart.items.additionalServiceItems[i].units;\n                            if (ecTmpProduct.quantity > 1 && ecTmpProduct.price != e.shoppingCart.bookingInformation.prices.totalAmount) ecTmpProduct.price = ecTmpProduct.price \/ ecTmpProduct.quantity;\n                            if (typeof e.shoppingCart.items.additionalServiceItems[i].arrivalDate == 'string') {\n                                ecTmpProduct.date = trDATErewrite(e.shoppingCart.items.additionalServiceItems[i].arrivalDate);\n                            } else if (typeof e.shoppingCart.items.additionalServiceItems[i].dateFrom == 'string') {\n                                ecTmpProduct.date = trDATErewrite(e.shoppingCart.items.additionalServiceItems[i].dateFrom);\n                            }\n                            ecTmpProduct.time = e.shoppingCart.items.additionalServiceItems[i].timeFrom;\n                            if (typeof e.shoppingCart.items.additionalServiceItems[i].duration == 'object') {\n                                if (typeof e.shoppingCart.items.additionalServiceItems[i].duration.durationType == 'number') ecTmpProduct.durationType = e.shoppingCart.items.additionalServiceItems[i].duration.durationType;\n                                if (typeof e.shoppingCart.items.additionalServiceItems[i].duration.value == 'number') ecTmpProduct.durationValue = e.shoppingCart.items.additionalServiceItems[i].duration.value;\n                            }\n                            ecProducts.push(ecTmpProduct);\n                        }\n                        let trECobject = null;\n                        if (conf.enhancedEC) {\n                            window.dataLayer.push({ecommerce: null});\n                            trECobject = {'checkout': {'actionField': {'step': 1}, 'products': ecProducts}};\n                        }\n                        let tmpDLobject = {\n                            'event': 'checkout',\n                            'transactionType': e.shoppingCart.transactionType,\n                            'totalAmount': e.shoppingCart.bookingInformation.prices.totalAmount,\n                            'bookingFee': e.shoppingCart.bookingInformation.prices.totalBookingFeeAmount,\n                            'visitorTax': e.shoppingCart.bookingInformation.prices.totalVisitorTaxAmount,\n                            'ecommerce': trECobject,\n                            'ibe': conf.IBEname,\n                            'shoppingCart': conf.debug ? e.shoppingCart : {}\n                        };\n                        if (ecProducts.length > 0) {\n                            if (typeof ecProducts[0].date == 'string') tmpDLobject.dateFrom = ecProducts[0].date;\n                            if (typeof ecProducts[0].time == 'string') tmpDLobject.time = ecProducts[0].time;\n                        }\n                        window.dataLayer.push(tmpDLobject);\n                    }\n                }\n                \/\/if (conf.enhancedEC) window.dataLayer.push({ 'event': 'checkoutOption', 'ecommerce': { 'checkout_option': { 'actionField': {'step': 1} } } });\n                \/\/ Transaction Tracking\n                if (doTrack && e.pageType == 9901) {\n                    let ecProducts = [];\n                    \/\/ Accommodation Tracking\n                    if (typeof e.bookingConfirmation.items.accommodations == 'object' && e.bookingConfirmation.items.accommodations.length > 0) {\n                        for (let i = 0; i < e.bookingConfirmation.items.accommodations.length; i++) {\n                            let ecTmpProduct = {};\n                            ecTmpProduct.id = e.bookingConfirmation.items.accommodations[i].productId;\n                            ecTmpProduct.name = e.bookingConfirmation.items.accommodations[i].product.name;\n                            ecTmpProduct.brand = e.bookingConfirmation.items.accommodations[i].serviceProvider.name;\n                            ecTmpProduct.category = conf.IBEname + ' | Accommodation Transaction';\n                            ecTmpProduct.price = e.bookingConfirmation.items.accommodations[i].price;\n                            ecTmpProduct.quantity = e.bookingConfirmation.items.accommodations[i].units;\n                            if (ecTmpProduct.quantity > 1 && ecTmpProduct.price != e.bookingConfirmation.totalAmount) ecTmpProduct.price = ecTmpProduct.price \/ ecTmpProduct.quantity;\n                            ecTmpProduct.dateFrom = trDATErewrite(e.bookingConfirmation.items.accommodations[i].dateFrom);\n                            ecTmpProduct.dateTo = trDATErewrite(e.bookingConfirmation.items.accommodations[i].dateTo);\n                            ecProducts.push(ecTmpProduct);\n                        }\n                        window.dataLayer.push({ecommerce: null});\n                        window.dataLayer.push({\n                            'event': 'transaction',\n                            'transactionId': e.bookingConfirmation.transactionId,\n                            'transactionNumber': e.bookingConfirmation.transactionNumber,\n                            'transactionType': e.bookingConfirmation.transactionType,\n                            'totalAmount': e.bookingConfirmation.totalAmount,\n                            'bookingFee': e.bookingConfirmation.bookingFee,\n                            'visitorTax': e.bookingConfirmation.visitorTax,\n                            'hasCancellationInsurance': e.bookingConfirmation.hasCancellationInsurance,\n                            'dateFrom': trDATErewrite(e.bookingConfirmation.items.accommodations[0].dateFrom),\n                            'dateTo': trDATErewrite(e.bookingConfirmation.items.accommodations[0].dateTo),\n                            'ecommerce': {\n                                'purchase': {\n                                    'actionField': {\n                                        'id': e.bookingConfirmation.transactionId,\n                                        'affiliation': e.linkkey,\n                                        'revenue': e.bookingConfirmation.totalAmount,\n                                        'tax': e.bookingConfirmation.visitorTax,\n                                        'shipping': 0\n                                    },\n                                    'products': ecProducts\n                                }\n                            },\n                            'ibe': conf.IBEname,\n                            'bookingConfirmation': conf.debug ? e.bookingConfirmation : {}\n                        });\n                    }\n                    \/\/ Additional Service Tracking\n                    if (typeof e.bookingConfirmation.items.additionalServices == 'object' && e.bookingConfirmation.items.additionalServices.length > 0) {\n                        for (let i = 0; i < e.bookingConfirmation.items.additionalServices.length; i++) {\n                            let ecTmpProduct = {};\n                            ecTmpProduct.id = e.bookingConfirmation.items.additionalServices[i].productId;\n                            ecTmpProduct.name = e.bookingConfirmation.items.additionalServices[i].product.name;\n                            if (typeof e.bookingConfirmation.items.additionalServices[i].service == 'object' && typeof e.bookingConfirmation.items.additionalServices[i].service.name == 'string') ecTmpProduct.name = ecTmpProduct.name + ' | ' + e.bookingConfirmation.items.additionalServices[i].service.name;\n                            ecTmpProduct.brand = e.bookingConfirmation.items.additionalServices[i].serviceProvider.name;\n                            ecTmpProduct.category = conf.IBEname + ' | Additional Service Transaction';\n                            ecTmpProduct.price = e.bookingConfirmation.items.additionalServices[i].price;\n                            ecTmpProduct.quantity = e.bookingConfirmation.items.additionalServices[i].units;\n                            if (ecTmpProduct.quantity > 1 && ecTmpProduct.price != e.bookingConfirmation.totalAmount) ecTmpProduct.price = ecTmpProduct.price \/ ecTmpProduct.quantity;\n                            ecTmpProduct.dateFrom = trDATErewrite(e.bookingConfirmation.items.additionalServices[i].dateFrom);\n                            ecTmpProduct.dateTo = trDATErewrite(e.bookingConfirmation.items.additionalServices[i].dateTo);\n                            ecProducts.push(ecTmpProduct);\n                        }\n                        window.dataLayer.push({ecommerce: null});\n                        window.dataLayer.push({\n                            'event': 'transaction',\n                            'transactionId': e.bookingConfirmation.transactionId,\n                            'transactionNumber': e.bookingConfirmation.transactionNumber,\n                            'transactionType': e.bookingConfirmation.transactionType,\n                            'totalAmount': e.bookingConfirmation.totalAmount,\n                            'bookingFee': e.bookingConfirmation.bookingFee,\n                            'visitorTax': e.bookingConfirmation.visitorTax,\n                            'hasCancellationInsurance': e.bookingConfirmation.hasCancellationInsurance,\n                            'dateFrom': trDATErewrite(e.bookingConfirmation.items.additionalServices[0].dateFrom),\n                            'timeFrom': e.bookingConfirmation.items.additionalServices[0].timeFrom,\n                            'ecommerce': {\n                                'purchase': {\n                                    'actionField': {\n                                        'id': e.bookingConfirmation.transactionId,\n                                        'affiliation': e.linkkey,\n                                        'revenue': e.bookingConfirmation.totalAmount,\n                                        'tax': e.bookingConfirmation.visitorTax,\n                                        'shipping': 0\n                                    },\n                                    'products': ecProducts\n                                }\n                            },\n                            'ibe': conf.IBEname,\n                            'bookingConfirmation': conf.debug ? e.bookingConfirmation : {}\n                        });\n                    }\n                }\n                \/\/ Debug\n                if (conf.debug) {\n                    window.ft_tosc5_onPageLoad = e;\n                }\n            });\n\n            \/\/ User-Event Based Tracking\n            dw('onUserAction', conf.tagID, function (e) {\n                \/\/ Set Request Type\n                if ((e.type == 1 || e.type == 2) && typeof e.requestType == 'number') {\n                    let requestType = '';\n                    switch (e.requestType) {\n                        case 0:\n                            requestType = 'Anfrage an Anfragepool \u00fcber Negativresultat nach Verf\u00fcgbarkeits-Pr\u00fcfung in Listing';\n                            break;\n                        case 1:\n                            requestType = 'Anfrage f\u00fcr pers\u00f6nliche Beratung \u00fcber Negativresultat nach Verf\u00fcgbarkeits-Pr\u00fcfung in Listing';\n                            break;\n                        case 2:\n                            requestType = 'Einfache Direktanfrage von Detailview';\n                            break;\n                        case 3:\n                            requestType = 'Detaillierte Direktanfrage von Detailview';\n                            break;\n                        case 4:\n                            requestType = 'Anfrage \u00fcber Negativresultat nach Verf\u00fcgbarkeits-Pr\u00fcfung in Detailview';\n                            break;\n                    }\n                }\n                \/\/ Event 0: \/\/ Telefonnummer-Klick\n                if (e.type == 0 && conf.trackEvents['0']) {\n                    window.dataLayer.push({\n                        'event': conf.eventsName ? conf.eventsName : 'ibePhoneClick',\n                        'ibe': conf.IBEname,\n                        'event_category': 'Contact',\n                        'event_action': 'Phone Number Click',\n                        'event_label': 'Object Owner called',\n                        'event_value': 0,\n                        'event_non_interaction': 0\n                    });\n                }\n                \/\/ Event 1: \/\/ Anfrage-versendet\n                if (e.type == 1 && conf.trackEvents['1']) {\n                    window.dataLayer.push({\n                        'event': conf.eventsName ? conf.eventsName : 'ibeRequestSent',\n                        'ibe': conf.IBEname,\n                        'event_category': 'Requests',\n                        'event_action': 'Request from ' + conf.IBEname,\n                        'event_label': requestType,\n                        'event_value': 0,\n                        'event_non_interaction': 0\n                    });\n                }\n                \/\/ Event 2: \/\/ Anfrageformular-offen\n                if (e.type == 2 && conf.trackEvents['2']) {\n                    window.dataLayer.push({\n                        'event': conf.eventsName ? conf.eventsName : 'ibeRequestFormOpen',\n                        'ibe': conf.IBEname,\n                        'event_category': 'User Experience',\n                        'event_action': 'Request Form View: ' + conf.IBEname,\n                        'event_label': requestType,\n                        'event_value': 0,\n                        'event_non_interaction': 0\n                    });\n                }\n                \/\/ Event 4: \/\/ Objekt-Klick\n                if (e.type == 4 && conf.trackEvents['4']) {\n                    window.dataLayer.push({\n                        'event': conf.eventsName ? conf.eventsName : 'ibeObjectClick',\n                        'ibe': conf.IBEname,\n                        'event_category': 'User Experience',\n                        'event_action': 'Object Click: ' + conf.IBEname,\n                        'event_label': '',\n                        'event_value': 0,\n                        'event_non_interaction': 0\n                    });\n                }\n                \/\/ Event 5: \/\/ Warenkorb-Sidebar-offen\n                if (e.type == 5 && conf.trackEvents['5']) {\n                    if (conf.enhancedEC) {\n                        window.dataLayer.push({ecommerce: null});\n                        window.dataLayer.push({'event': 'checkoutOption', 'ecommerce': {'checkout_option': {'actionField': {'step': 1}}}});\n                    }\n                    window.dataLayer.push({\n                        'event': conf.eventsName ? conf.eventsName : 'ibeCartSidebarOpen',\n                        'ibe': conf.IBEname,\n                        'event_category': 'User Experience',\n                        'event_action': 'Cart Sidebar open: ' + conf.IBEname,\n                        'event_label': '',\n                        'event_value': 0,\n                        'event_non_interaction': 0\n                    });\n                }\n                \/\/ Event 6: \/\/ Suche\/Filterung\n                if (e.type == 6 && conf.trackEvents['6']) {\n                    let searchType = e.searchObjectType == 0 ? 'Event-Search' : 'Accommodation-Search';\n                    let adults = 0;\n                    let childs = 0;\n                    let units = 0;\n                    let occupancies = [];\n                    if (e.searchObjectType == 1) {\n                        for (let i = 0; i < e.occupancies.length; i++) {\n                            adults += e.occupancies[i].adults;\n                            childs += e.occupancies[i].children.length;\n                            units += e.occupancies[i].units;\n                        }\n                        occupancies = e.occupancies;\n                    }\n                    window.dataLayer.push({\n                        'event': conf.eventsName ? conf.eventsName : 'ibeSearch',\n                        'ibe': conf.IBEname,\n                        'event_category': 'User Experience',\n                        'event_action': searchType + ' on: ' + conf.IBEname,\n                        'event_label': String(e.resultCount) + ' results found',\n                        'event_value': 0,\n                        'event_non_interaction': 0,\n                        'searchDateFrom': trDATErewrite(e.dateFrom),\n                        'searchDateTo': trDATErewrite(e.dateTo),\n                        'resultCount': e.resultCount,\n                        'hasFilter': e.hasFilter,\n                        'adults': adults,\n                        'childs': childs,\n                        'units': units,\n                        'occupancies': occupancies,\n                        'filterObject': e.hasFilter ? e.filterObject : {}\n                    });\n                }\n                \/\/ Event 7: \/\/ Prospekt Downloads\n                if (e.type == 7 && conf.trackEvents['7']) {\n                    if (typeof e.actionType != 'number') {\n                        e.actionType = 3;\n                    }\n                    let tmpBrochureButton = 'Other';\n                    switch (e.actionType) {\n                        case 0:\n                            tmpBrochureButton = 'View';\n                            break; \/\/ Brochure View\n                        case 1:\n                            tmpBrochureButton = 'Download';\n                            break; \/\/ Brochure Download\n                        case 2:\n                            tmpBrochureButton = 'Order';\n                            break; \/\/ Brochure Order\n                    }\n                    window.dataLayer.push({\n                        'event': conf.eventsName ? conf.eventsName : 'brochureInteraction',\n                        'ibe': conf.IBEname,\n                        'event_category': 'User Experience',\n                        'event_action': 'Brochures Interaction',\n                        'event_label': tmpBrochureButton,\n                        'event_value': 0,\n                        'event_non_interaction': 0\n                    });\n                }\n                \/\/ Event 10: \/\/ 'Add to Cart'\n                if (e.type == 10 && conf.trackEvents['10']) {\n                    dataLayer.push({ ecommerce: null }); \/\/ Clear the previous ecommerce object.\n                    dataLayer.push({\n                        event: \"add_to_cart\",\n                        ecommerce: {\n                            currency: \"EUR\",\n                            value: e.item.price.totalPrice,\n                            items: [{\n                                item_id: e.item.serviceProvider.id,\n                                item_name: e.item.serviceProvider.name,\n                                item_variant: e.item.product.name,\n                                price: e.item.price.totalPrice,\n                                quantity: 1\n                            }]\n                        }\n                    });\n                }\n                \/\/ Debug\n                if (conf.debug) {\n                    window.ft_tosc5_onPageLoad = e;\n                }\n            });\n        <\/script>\n\t\t        <div id=\"pwcontainer\">\n            <div id=\"tosc5target\"><\/div>\n            <div class=\"clear\"><\/div>\n            <script async\n                    src=\"https:\/\/resc.deskline.net\/DW5\/start\/SAALACHTAL\/cea18939-38ce-4b04-88cc-1423206ccdb0\/index.js\"><\/script>\n        <\/div>\n\t\t        <style>\n            #pwcontainer, #tosc5target {\n                width: 100% !important;\n                height: auto !important;\n                position: relative !important;\n                overflow: hidden !important;\n            }\n\n            .wp-block-kadence-slider.kb-advanced-slider {\n                display: none !important;\n            }\n\n            .inhalt #zeile2 {\n                height: 1px !important;\n                position: absolute !important;\n                min-height: auto !important;\n                max-height: auto !important;\n                z-index: 1000;\n            }\n        <\/style>\n\t\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":15,"featured_media":23536,"parent":0,"menu_order":15,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","footnotes":""},"categories":[3,96,16],"tags":[105],"class_list":["post-1302","page","type-page","status-publish","has-post-thumbnail","hentry","category-uncategorized","category-lofer-com-en","category-summer","tag-generally"],"acf":[],"taxonomy_info":{"category":[{"value":3,"label":"Generally"},{"value":96,"label":"lofer.com"},{"value":16,"label":"summer"}],"post_tag":[{"value":105,"label":"Generally"}]},"featured_image_src_large":["https:\/\/www.lofer.com\/wp-content\/uploads\/2022\/01\/online-shop-1024x768.jpg",1024,768,true],"author_info":{"display_name":"admin_conecto","author_link":"https:\/\/www.lofer.com\/en\/author\/admin_conecto"},"comment_info":0,"_links":{"self":[{"href":"https:\/\/www.lofer.com\/en\/wp-json\/wp\/v2\/pages\/1302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lofer.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.lofer.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.lofer.com\/en\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lofer.com\/en\/wp-json\/wp\/v2\/comments?post=1302"}],"version-history":[{"count":0,"href":"https:\/\/www.lofer.com\/en\/wp-json\/wp\/v2\/pages\/1302\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lofer.com\/en\/wp-json\/wp\/v2\/media\/23536"}],"wp:attachment":[{"href":"https:\/\/www.lofer.com\/en\/wp-json\/wp\/v2\/media?parent=1302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lofer.com\/en\/wp-json\/wp\/v2\/categories?post=1302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lofer.com\/en\/wp-json\/wp\/v2\/tags?post=1302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}