window.dw = window.dw || function () { (dw.q = dw.q || []).push(arguments) }; dw('settings', 'fa68e3d3-6f70-4ffe-ab95-d47508bf255a', { "context": { "targetRoute":[ tosc5_targetRoute ] }, "lang": tosc5_lang, "target": "tosc5target", "styleResources":[ 'https://blog.visitklagenfurt.at/wp-content/feratel_tosc5.css' ] }); dw( /* Name des Events bei welchem der Code ausgelöst werden soll */ 'onPageChange', /* TagID der TOSC5 Implementierung */ 'fa68e3d3-6f70-4ffe-ab95-d47508bf255a', function() { /* auszuführender Code */ console.log('1 page changed event ('+document.title+'):', window.location.href); setTimeout(function(){ console.log('2 (after ' + tosc5timeout + 'ms) page changed event ('+document.title+') window.location.href: ', window.location.href); var origloc = document.location.protocol + '//' + document.location.hostname + document.location.pathname + document.location.search; console.log('3 (after ' + tosc5timeout + 'ms) page changed event ('+document.title+') origloc: ', origloc); window.dataLayer = window.dataLayer || []; window.dataLayer.push({ originalLocation: origloc }); window.dataLayer.push({ 'event': 'Pageview', 'pagePath': window.location.href, 'pageTitle': document.title }); }, tosc5timeout ); } );