Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save uzaharova/c6d944a445a6cf15429b83761fba9f73 to your computer and use it in GitHub Desktop.
Save uzaharova/c6d944a445a6cf15429b83761fba9f73 to your computer and use it in GitHub Desktop.
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