Disable webvisor on single-page docs

This commit is contained in:
Ivan Blinkov 2020-04-10 14:31:21 +03:00 committed by GitHub
parent 91a33e1eec
commit 2108f621dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,13 +50,14 @@
(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:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true
id: 18343495,
clickmap: !is_single_page,
trackLinks: !is_single_page,
accurateTrackBounce: !is_single_page,
webvisor: !is_single_page
});
} catch(e) { }
});