Answer the question
In order to leave comments, you need to log in
How to set the target for buttons in Bitrix?
Good day, comrades! I am not familiar with Bitrix, but there was a need to add goals to the buttons of various forms on the site. A search on the Internet did not give anything sensible, it did not work out with a half-kick either. As far as I understand, the forms on the site are implemented by the standard features of Bitrix. Does anyone know how to do this?
Answer the question
In order to leave comments, you need to log in
Bitrix seems to have nothing to do with it. Only minimal knowledge of js is needed.
I'm hanging up on submitting the form like this
jQuery(document).ready(function() {
jQuery( "#idForm" ).submit(function( event ) {
yaCounter1234567.reachGoal('Feedback');
console.log("target reached!");
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question