S
S
stichii2016-10-26 17:52:26
JavaScript
stichii, 2016-10-26 17:52:26

How to hang the Yandex Metrics sending event on the Bitrix CRM form button?

Good evening! The site uses the Bitrix form, i.e. it is loaded through a script on the website. It is necessary to track the event when the user submitted the data of this form. An event was created in the index of the metric, which I add through the script

jQuery(document).ready(function($) {
                                    $('#bxform').on('submit', function() {
                                        yaCounter11111.reachGoal('submitFormRezerv');
                                    });
                                });

But the event is not tracked, there are no errors on the script in the console. Do not tell me how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zlatoslav Desyatnikov, 2016-10-27
@pxz

Is yaCounter ID set correctly? Is the goal created in the metric?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question