Created
March 30, 2017 09:08
-
-
Save uzaharova/c6d944a445a6cf15429b83761fba9f73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/addons/rus_yandex_metrika/func.js b/js/addons/rus_yandex_metrika/func.js | |
index bfcb2a8..afa58fe 100644 | |
--- a/js/addons/rus_yandex_metrika/func.js | |
+++ b/js/addons/rus_yandex_metrika/func.js | |
@@ -28,6 +28,11 @@ | |
} | |
}); | |
+ $(document).on('click', '.ty-pagination__item', function() { | |
+ var url = $(this).prop('href'); | |
+ window['yaCounter' + _.yandex_metrika.settings.id].hit(url); | |
+ }); | |
+ | |
$.ceEvent('on', 'ce.formajaxpost_call_requests_form_main', function(form, elm) { | |
if (_.yandex_metrika.settings.collect_stats_for_goals.call_request == 'Y') { | |
if (typeof window['yaCounter' + _.yandex_metrika.settings.id] != "undefined") { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment