window.universal_variable = window.universal_variable || {}; window.universal_variable.aud = { 'central' : 'jogos', 'channel' : 'jogos' }; if(document.title){ window.universal_variable.aud.mediaTitle = document.title.replace(/\s-\s(.*)/, ""); } if(Config && Config.Conteudo){ if(Config.Conteudo.id){ window.universal_variable.aud.mediaId = Config.Conteudo.id; } } if(Config && Config.Metricas){ if(Config.Metricas.author){ window.universal_variable.aud.author = Config.Metricas.author; } } function loadAudience(){ this.count = 30; this.timer = setTimeout(function(){ if(this.count){ if(UOLPD && UOLPD.Audience2 && typeof UOLPD.Audience2.countMetrics == "function"){ UOLPD.Audience2.countMetrics(); console.info("Dispatch: Google Analytics countMetrics"); clearInterval(this.timer); delete this.timer; } else { this.count--; loadAudience(); } } else { clearInterval(this.timer); delete this.timer; } }, 500); } loadAudience();
Topo