D
D
Danil Trubitsyn2016-08-23 17:19:51
Yandex.Metrica
Danil Trubitsyn, 2016-08-23 17:19:51

How to set up a goal in Ya.Metrika when submitting a ContactForm 7 form?

There is a standard feedback form made in the Contact Form 7 plugin.
You need to make a mark in Yandex Metrica about the successful submission of the form for the purposes.
In additional settings I write
on_sent_ok: "yaCounterXXX.reachGoal('order');"
where XXX is the counter number.
In the metric, I set up an event with the identifier "order".
The target doesn't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kolesnikov, 2016-08-23
@ali3412

$('form').on('submit', function() {
    yaCounterXXX.reachGoal('order');
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question