Takayuki, thank you for quick reply and for your excellent plugin!
Of course I read the documentation and searched in google and on the forum.
Here is the page test.markedium.ru/sample-page/ and code in the form, in Additional settings is
on_submit: “yaCounter33346018.reachGoal(‘sendform1’);”
for Yandex Metrika.
But I don’t see it in the page source code and it does not work.
If I add a string to the file submit.php
$atts[‘onsubmit’] = “yaCounter33346018.reachGoal(‘sendform1’); return true;”
it working. Of course, one goal for all forms (
What can I do wrong?
Thank you.
It doesn’t work because yaCounter33346018 isn’t defined in the page.
Yes, I forgot to say that this page — for test, and yaCounter33346018 isn’t defined. On working site, spb-decor.ru, yaCounter33346018 is defined, but there now changed file submit.php, as I wrote above.
Ok, now I have created a counter for this page specially, yaCounter36185325, set up goal, add string
on_send_ok: “yaCounter36185325.reachGoal(‘sendform1’);”
in the Additional settings.
Counter working, goal – not.
The question here in what – why the source code page does not appear line on_send_ok: “yaCounter36185325.reachGoal(‘sendform1’);” ? Should not? But otherwise the goal will not work, is not it?
Thank you!
Takayuki, you are very busy, I understand.
But Additional Settings still does not work.
Contact Form 7 Version 4.4.1, WP 4.5.
No other plugins, clean installation.
Any code in Additional Settings does not appear in the page source code.
I was search for this code text ( eg on_submit: “alert(‘submit’);” in the field Additional Settings )in all files and in the database – it is not.
Thank you!
Ок, Version 4.4.2, but Additional Settings does not work still (((