K
K
kmisha2018-02-15 11:53:07
Yandex.Metrica
kmisha, 2018-02-15 11:53:07

How do I set up a metric target for a form?

Hello! I'm running out of nerves, help))
I'm trying to set up goals for submitting a form, but nothing works, because Ajax I'm
using this form https://postovoy.net/22.html

<form action="" onsubmit="yaCounterХХХХХХХХ.reachGoal('ORDER'); return true;" name="form-1">

This is not working, please help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2018-02-15
@Eridani

You have a success event in Ajax, when the letter has already been processed and left, so call the function
yaCounterХХХХХХХ.reachGoal('ORDER'); - where xxxx is the counter number, and order is the target
ID

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question