B
B
bossldv2014-07-27 12:46:04
JavaScript
bossldv, 2014-07-27 12:46:04

How to set the target of the "event" metric?

Hello!
I can't figure out how to set up a metric target for an event. I have a callback order button with a popup form. I want to set the target to not click a button after which this window pops up.
In the metric settings, it is recommended to put the code onclick="yaCounterХХХХХХ.reachGoal('otp'); return true; but I already have onclick here, which, as I understand it, calls the form. What should I do?
Thank you all.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2014-07-27
@bossldv

copy here a piece of the button code, we will specifically show you how to register it.

A
Amir Gafurov, 2014-07-27
@amir73911

add this code to existing onclick yaCounterХХХХХХ.reachGoal('otp'); return true;

4
4ikist, 2014-07-28
@4ikist

The main thing is that you have one return at the end of the attribute value, and all calls are separated by ;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question