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