MediaWiki:Common.js: различия между версиями
Перейти к навигации
Перейти к поиску
Cimus (обсуждение | вклад) Нет описания правки |
Cimus (обсуждение | вклад) Нет описания правки |
||
| Строка 7: | Строка 7: | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | })(); | ||
var yaParams = {/*Здесь параметры визита*/}; | |||
(function(w, c) { | |||
(w[c] = w[c] || []).push(function() { | |||
try { | |||
w.yaCounter7262719 = new Ya.Metrika({id:7262719, enableAll: true, webvisor:true,params:window.yaParams||{ }}); | |||
} | |||
catch(e) { } | |||
}); | |||
})(window, "yandex_metrika_callbacks"); | |||
importScriptURI('http://mc.yandex.ru/metrika/watch.js') | |||
Версия от 17:35, 11 июля 2013
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-4443790-4']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
var yaParams = {/*Здесь параметры визита*/};
(function(w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter7262719 = new Ya.Metrika({id:7262719, enableAll: true, webvisor:true,params:window.yaParams||{ }});
}
catch(e) { }
});
})(window, "yandex_metrika_callbacks");
importScriptURI('http://mc.yandex.ru/metrika/watch.js')