[docs] remove Metrika counter

This commit is contained in:
Ivan Blinkov 2022-03-24 22:48:24 +03:00 committed by GitHub
parent a60737e67e
commit a2c4073ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,15 +70,6 @@
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
var is_single_page = $('html').attr('data-single-page') === 'true';
try {
w.yaCounter18343495 = new Ya.Metrika2({
id: 18343495,
clickmap: !is_single_page,
trackLinks: !is_single_page,
accurateTrackBounce: !is_single_page,
webvisor: !is_single_page
});
} catch(e) { }
if (!is_single_page) {
$('head').each(function(_, element) {
@ -91,20 +82,6 @@
});
}
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = "/js/metrika.js";
if (window.location.hostname.endsWith('clickhouse.com')) {
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else {
f();
}
}
})(document, window, "yandex_metrika_callbacks2");
var beforePrint = function() {