R
R
rusmaiolika2016-03-11 10:43:33
Conversion
rusmaiolika, 2016-03-11 10:43:33

How to set Yandex.metrics targets for clicking the "Confirm order" button (WooCommerce)?

Good day!
I'm trying to set up Yandex metrics goals for order confirmation in the basket. But elementary I can not even find in which button to "fasten" the event. The question arises, where to find the desired file? and there is a suspicion that when updating the plugin, all my improvements are deleted. Is it possible, for example, to write a function in some widget that will respond to pressing a third-party button?
Here is a piece of code for an already formed page, the button on which you need to set up an event.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr Crabbz, 2016-03-11
@rusmaiolika

It's easier to set a target for hitting the "order-received" page:
Or an example with javascript:
37bfeb5f82dd4499a2177cdd80c76a04.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question