var GOOGLE_hash = ''; // zanechano kvuli puvodni funkcnosti (TODO: je nutne??) if (document.location.toString().search('#') == -1) { var pat = /[&?]zdroj=([^&]*)/i; var zdroj = document.location.search.match(pat); if (zdroj != null && zdroj.length > 1) { zdroj = zdroj[1]; //sklik if (zdroj.search("sklik") >= 0) { _gaq.push(['_setCampMediumKey', 'cpc']); _gaq.push(['_setCampSourceKey', 'seznam']); _gaq.push(['_setCampNameKey', zdroj]); _gaq.push(['_setCampContentKey', zdroj]); var term = /[&?]q=([^&]*)/i; var hledany_vyraz = document.referrer.match(term); if (hledany_vyraz != null && hledany_vyraz.length > 1) { hledany_vyraz = hledany_vyraz[1]; _gaq.push(['_setCampTermKey', hledany_vyraz]); } } //nase maily else if (zdroj.search("mail_") >= 0) { _gaq.push(['_setCampMediumKey', 'email']); _gaq.push(['_setCampSourceKey', zdroj]); _gaq.push(['_setCampNameKey', zdroj.replace('mail_','')]); } } }