W
W
wacky082015-06-30 18:12:23
JavaScript
wacky08, 2015-06-30 18:12:23

How to set up an event goal in Yandex Metrica?

Tell me, please, in which place of the code of the button of the application sending form should I insert the Yandex metrics goal code?
c1598e62734c49f5aa3588032ad49b39.png

And what is the piece of code from here?
bcf747c89a4148f293eb695a5fe57bf9.png

Thank you in advance for helping the kettle and I guarantee a discount on the air conditioner with installation!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Guzel Sharafutdinova, 2015-07-02
@wacky08

If you want to track form submission, it is better to insert the event code into the form tag. It should look something like this:
Then the event will fire when the form is submitted.

K
keslo, 2015-06-30
@keslo

Place the onclick event code in the submit button tag of the form. In this case, you have this button highlighted in the line by the cursor on the screen.
Only from the button code it is not clear how the form is sent? Most likely, you need to add the type="submit" parameter to the button parameters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question