Answer the question
In order to leave comments, you need to log in
Can't set up GOALS in YandexMetrica, can you help?
Hello everyone, there is a site - meliore.ru , made on bootstrap, the point is that you need to set a goal for the metric, but the on-click event on the form call button is busy, the code is below:
<button class="btn btn-smal btn-block btn-success" type="button" onclick="order_product(1,'Фотошторы Волшебный лес')">Купить</button>
<div class="submit_form">
<div class="bg_submit">
<input type="submit" class="call_submit" value="Заказать товар">
</div>
</div>
Answer the question
In order to leave comments, you need to log in
You can set an event to fire for the button, despite the fact that there is already js code there. Just separate them with a semicolon. Get it like this:
<button class="btn btn-smal btn-block btn-success" type="button" onclick="order_product(1,'Фотошторы Волшебный лес');yaCounter37700435.reachGoal('ORDER'); return true;">Купить</button>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question