O
O
Oleg2017-09-24 16:02:21
1C-Bitrix
Oleg, 2017-09-24 16:02:21

Bitrix. How to make two different target id's submit on successful form submission?

Hello! Please tell me :)
How to send the target metric for a successfully completed form, and not just on a click on the "send" button on the form?
It seems that you can somehow insert it into the call of the form component, but I don’t understand exactly how it should look in the code and in what part of the call code it should be inserted.
And the second question, how can I send two different target identifiers when submitting the form?
This format does not allow sending 2 identifiers separated by commas ((
yaCounterXXX.reachGoal('zvonok')

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Emelyanov, 2017-09-25
@babarun

In the settings of the form.result.new component, you specify the page to which the redirect occurs in case of successful saving of the form, and place the request in the metric on it. Just add a referrer check so that you can't send an event to the metric if you just go to this page.

D
Dmitry Grabko, 2017-09-26
@Dima_So

You can set targets via js.

$('.класс формы').click(function(){
    yaCounterXXXXXX.reachGoal('zvonok');
  });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question