O
O
Oleg2018-09-11 13:51:59
Yandex.Metrica
Oleg, 2018-09-11 13:51:59

How to set goals in Yandex Metrica?

You need to set a payment goal.
When the user clicks to pay (this can be fixed), but the result of the payment will come to the callback, which processes php.
How do I set the goal of the metric if it is running on js (on the client). And I need to set a goal for a positive result of payment (it can be different). connect nodejs? Long and tedious for one line yaCounter44292124.reachGoal('TARGET_REG');
Perhaps there is some simple solution, like making a redirect to the page with this js in the callback if the payment was made successfully?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Danil Sapegin, 2018-09-11
@ynblpb_spb

After making a payment, does the user get to some page where the tariff / service is activated and / or a notification is displayed about the successful crediting of the payment?
If yes, then just on this page output yaCounter44292124.reachGoal('TARGET_REG'); and that's it, you don't need any php or nodejs

Z
zoozag, 2018-09-12
@zoozag

It seems like there is still no normal API for data transfer. The Yandex blog recommends transferring via offline conversions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question