Answer the question
In order to leave comments, you need to log in
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
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question