PageSourceSearch

https://www.matl-bula.cz/shared/optiga.js

js matl-bula.cz collected 2026-10-08 07:25:01 UTC 7,967 bytes, 8 lines download raw bytes

1/*
2* Google analytics and Universal analytics wrapper
3* COPYRIGHT 2015 Optimato
4* [email protected]
5* Version 2015-06-17
6* @preserve
7*/
8var opti,_gaq=_gaq||[];!function(){if(_optiConfig&&(_optiConfig.accountName||_optiConfig.accountName)){_optiConfig.debugMode||(_optiConfig.debugMode=window.location.search.match(/(\?|&)optiga=debug/i)?!0:!1);var o=!1,e=[];if(_optiConfig.universalAnalytics&&(o=!0),_optiConfig.iframeCheck&&window.top!=window)return void(_optiConfig.debugMode&&console.log("OptiGA: iframe check failed"));var n=_optiConfig.accountName;if(_optiConfig.accountNameDomain&&"object"==typeof _optiConfig.accountNameDomain){var t;for(t in _optiConfig.accountNameDomain)-1!=window.location.hostname.indexOf(t)&&(n=_optiConfig.accountNameDomain[t])}if(n){o||(_gaq.push(["_setAccount",n]),_gaq.push(["_setAllowLinker",!0]));var a=_optiConfig.domain;if(_optiConfig.domainDomain&&"object"==typeof _optiConfig.domainDomain){var t;for(t in _optiConfig.domainDomain)-1!=window.location.hostname.indexOf(t)&&(a=_optiConfig.domainDomain[t])}
8a&&_gaq.push(["_setDomainName",a]),o&&e.push(["create",n,a?{cookieDomain:a}:"auto"]);var f=_optiConfig.trackerName;if(f||(f="opti"),_optiConfig.trackerName=f,o?"opti"!=f&&console.log("_optiConfig.trackerName is not available anymore!"):_gaq.push(function(){window[f]=_gat._getTrackerByName()}),o&&e.push(function(){window.opti={_trackEvent:function(o,i,e,n,t){ga("send","event",o,i,e,n,t?{nonInteraction:1}:{})},_trackPageview:function(){ga("send","pageview")},_addTrans:function(o,i,e,n,t){this.checkIfEcommerceIsLoaded(),ga("ecommerce:addTransaction",{id:o,affiliation:i,revenue:e,tax:n,shipping:t})},_addItem:function(o,i,e,n,t,a){this.checkIfEcommerceIsLoaded(),ga("ecommerce:addItem",{id:o,sku:i,name:e,category:n,price:t,quantity:a})},_trackTrans:function(){this.checkIfEcommerceIsLoaded(),ga("ecommerce:send")},checkIfEcommerceIsLoaded:function(){this.ecommerceLoaded||(ga("require","ecommerce","ecommerce.js"),this.ecommerceLoaded=!0)}}}),!o){var g=_optiConfig.env;if(_optiConfig.autoUpdate&&(g=("https:"==document.location.protocol?"https://":"http://")+"www.matl-bula.cz/shared/optiga-env.js"),g||(g="./optiga-env.js"),g){var c=document.createElement("script");c.type="text/javascript",c.src=g;var r=document.getElementsByTagName("script")[0],p=r.parentNode.insertBefore(c,r);_optiConfig.debugMode&&console.log("OptiGA: attached env file from "+g+", ok = "+p)}}if(o?_optiConfig.more&&("function"==typeof _optiConfig.more&&(_optiConfig.more=[_optiConfig.more]),_optiConfig.more.length&&(e=e.concat(_optiConfig.more))):_optiConfig.more&&_optiConfig.more.length&&(_gaq=_gaq.concat(_optiConfig.more)),_optiConfig.loadGa=function(){if(!_optiConfig.loadedGa)if(o){_optiConfig.srcPath&&console.log("Warning! Setting _optiConfig.srcPath is not supported anymore in UA."),_optiConfig.displayFeatures&&e.push(["require","displayfeatures"]);var t=function(o){e.push(o)};if(_optiConfig.beforeSend){if("array"==typeof _optiConfig.beforeSend)for(var a in _optiConfig.beforeSend)"function"==typeof _optiConfig.beforeSend[a]&&_optiConfig.beforeSend[a](t);else"function"==typeof _optiConfig.beforeSend&&_optiConfig.beforeSend(t);_optiConfig.debugMode&&console.log("Running _optiConfig.beforeSend: ",_optiConfig.beforeSend)}if(e.push(["send","pageview"]),_optiConfig.afterSend){if("array"==typeof _optiConfig.afterSend)for(var a in _optiConfig.afterSend)"function"==typeof _optiConfig.afterSend[a]&&_optiConfig.afterSend[a](t);else"function"==typeof _optiConfig.afterSend&&_optiConfig.afterSend(t);_optiConfig.debugMode&&console.log("Running _optiConfig.afterSend: ",_optiConfig.afterSend)}var f="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ",g=new Function(f);if(g.apply(window),_optiConfig.disableGaqPolyfill||(_gaq&&_gaq.length&&(e=e.concat(_gaq)),_gaq={push:function(){var o=arguments[0];if(o)if("function"==typeof o)console.log("Warning, pushing _gaq with callbacks is not supported anymore.");else if(window.opti[o[0]]){var i=o[0];o.shift(),window.opti[i].apply(window,o)}}}),e&&e.length)for(i=0;i<e.length;i++){var c=e[i];"function"==typeof c?(_optiConfig.debugMode&&console.log("Running UA function: ",c),c.apply(this)):(_optiConfig.debugMode&&console.log("Running ga() with parameters: ",c),window.ga.apply(window,c))}}else{_gaq.push(["_trackPageview"]),_optiConfig.debugMode&&_gaq.push(function(){console.log("OptiGA: _trackPageView, ID "+n)}),!_optiConfig.envLoaded&&_optiConfig.debugMode&&console.log("OptiGA: Error, running loadGa without env file loaded :("),_gaq.push(function(){_gaq=[],_optiConfig.debugMode&&console.log("OptiGA: Clearing _gaq")});var r=document.createElement("script");r.type="text/javascript",r.async=!0,_optiConfig.srcPath||(_optiConfig.srcPath=".google-analytics.com/ga.js");var p="";"."==_optiConfig.srcPath[0]&&(p="https:"==document.location.protocol?"ssl":"www"),r.src=("https:"==document.location.protocol?"https://"+p:"http://"+p)+_optiConfig.srcPath;var d=document.getElementsByTagName("script")[0],s=d.parentNode.insertBefore(r,d);_optiConfig.debugMode&&(console.log("OptiGA: loading main GA script from "+r.src+", ok = "+s),console.log("_gaq is:"),console.log(_gaq))}_optiConfig.loadedGa=!0},o&&_optiConfig.loadGa.apply(window),e={push:function(){console.log("Warning! 
8No more appending to var _uaq is possible!")}},_optiConfig.bindEvents){var d,s=!1;"undefined"!=typeof jQuery?(d=function(o){jQuery(o)},s=!0):d=function(o){if(window.addEventListener)window.addEventListener("DOMContentLoaded",o);else{window._optiBindEvents=o;var i=function(){document.body&&document.body.appendChild?window._optiBindEvents():window.setTimeout(i,400)};i()}};var l=function(i,e,n){if(o)ga("send","event",i,e,n),_optiConfig.debugMode&&console.log('OptiGA: send event, type="'+i+'", action="'+e+'", data="'+n+'"');else{var t=window[_optiConfig.trackerName];t?t._trackEvent(i,e,n):(_gaq.push(["_trackEvent",i,e,n]),_gaq.push(function(){_optiConfig.debugMode&&console.log('OptiGA: _trackEvent NOW, type="'+i+'", action="'+e+'", data="'+n+'"')})),_optiConfig.debugMode&&console.log("OptiGA: _trackEvent ("+(t?"now":"delayed")+'), type="'+i+'", action="'+e+'", data="'+n+'"')}},m=function(o,i,e,n){_optiConfig.debugMode&&o&&o.style&&(o.style.border="dashed 2px blue"),o.addEventListener?o.addEventListener("click",function(){l(i,e,n)},!1):o.attachEvent&&o.attachEvent("onclick",function(){l(i,e,n)},!1)},u=function(o,i,e,n){_optiConfig.debugMode&&o&&o.style&&(o.style.border="dashed 2px green"),o.addEventListener?o.addEventListener("submit",function(t){_optiConfig.formSubmitAllowed?_optiConfig.formSubmitAllowed=!1:(t.preventDefault(),l(i,e,n),_optiConfig.formSubmitAllowed=!0,window.setTimeout(function(){o.submit()},400))},!1):o.attachEvent&&o.attachEvent("onsubmit",function(){l(i,e,n)},!1)},_=function(){_optiConfig.debugMode&&console.log("OptiGA: Connecting external links");var o,i=document.getElementsByTagName("A");for(o in i){var e,n=i[o],t=n.href;if(t&&"#"!=t){var a=t.match(/https?:\/\/([^\/]+)(:\d+)?\//i);if(a&&a[1]!=window.location.hostname&&m(n,"external","go",t),"mailto"==t.substring(0,6)){var f=t.substring(7);m(n,"email","send",f)}else if("ftp"==t.substring(0,3))m(n,"ftp","go",t);else if(e=t.match(/(.*)\.(doc|docx|xls|xlsx|ppt|pptx|pdf|zip|txt|wma|mov|avi|wmv|mp3|flv|aac|mpg|mpeg|dwg)($|\&|\?)/i)){var g=e[1]+"."+e[2];-1!=g.indexOf("//")&&(g=g.substring(g.indexOf("//")+2,g.length)),-1!=g.indexOf("/")&&(g=g.substring(g.indexOf("/")+1,g.length)),m(n,"file","download",g)}}}if(_optiConfig.bindForms){var o,i=document.getElementsByTagName("FORM");for(o in i){var n=i[o];if(!n.className||!n.className.match(/disable-ga/)){var c=n.action;u(n,"form","submit",c)}}}};d(_)}o||window.setTimeout(_optiConfig.loadGa,2500)}}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.