S
S
Strelcov2016-06-02 01:29:43
Yandex.Metrica
Strelcov, 2016-06-02 01:29:43

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>

I tried to put an event on the form, but it doesn't matter, ideally put on the "Order product". Put the same, still does not count. The pop-up form is called from a PHP file by a script, maybe this is the case? The code for the "Order product" button is below:
<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

1 answer(s)
A
Alexey Denisov, 2016-06-02
@strelcov

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 question

Ask a Question

731 491 924 answers to any question