Answer the question
In order to leave comments, you need to log in
Multiple conditions in onclick?
Good afternoon, please tell me, if in the onclick event there is one more condition in addition to the goal of the metric, how to write them down correctly?
onclick="attrib='Get Cost';yaCounterXXXXX.reachGoal('name'); return true;"
tried so, but the purpose does not fulfill.
Answer the question
In order to leave comments, you need to log in
Maybe you already have an updated Metrica on the page?
Now the transfer of information about the achievement of the goal is organized by the following code:
ym(XXXXXX, 'reachGoal', 'TARGET_NAME'); return true;
, where XXXXXX is the number of your counter;
TARGET_NAME - target identifier.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question