C
C
cashbot2019-12-08 14:34:14
Yandex
cashbot, 2019-12-08 14:34:14

How to add a Goal from the Yandex Money "pay" button?

Hello.
I can't set up a goal in Yandex Metrica using the "pay" button. Does not work.
There is a WordPress site with Elementor editor, payment form downloaded from Yandex.
I set the goal for the JavaScript event in the counter settings, I write the line with the code and the identifier in this form of payment, but this form does not pass the goal on onclick. I inserted a line with a counter and an identifier in different parts - to no avail :(
I can't figure out what I'm doing wrong?

<iframe src="https://money.yandex.ru/quickpay/shop-widget?writer=buyer&targets=&targets-hint=&default-sum=&button-text=11&payment-type-choice=on&hint=&successURL=&quickpay=shop&account=410018973331820" width="422" height="216" frameborder="0" allowtransparency="true" scrolling="no"></iframe>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nadim Zakirov, 2019-12-08
@zkrvndm

Everything is wrong, the frame is not yours and you cannot interfere with its code. You can copy the payment form itself (what's inside the frame) to your site, bring it to a more or less divine form using css, and after that, hang onclick without any problems.

D
Dimonchik, 2019-12-08
@dimonchik2013

google "Yandex metrics iframe"
How to set up a target on an iframe form (a form from another site)?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question