Answer the question
In order to leave comments, you need to log in
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?
And what is the piece of code from here?
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
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.
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 questionAsk a Question
731 491 924 answers to any question