Yandex.metrika uses reachgoal event for his analytic counter
my code form unlogged.tpl:
- Code: Select all
<form action="<?php echo $action_url; ?>" method="post" name="adminForm" class="form-donotvalidate"
novalidate="novalidate"
onsubmit="ym(21517516, 'reachGoal', 'send-cart'); return true;">
"onsubmit" overwritted by OPC? i cant see this on real page.
Also, i want to catch click on submit button:
- Code: Select all
<button <?= $disable_checkout ? "disabled" : "" ?>
type="submit" <?php echo $op_onclick ?> class="btn" id="confirmbtn"
onclick="ym(21517516, 'reachGoal', 'try-cart'); return true;">
Confirm order
</button>
how to do this?