Answer the question
In order to leave comments, you need to log in
How to set up goals in Yandex.Metrica?
Hello.
Tell me how to properly set up a compound goal.
1. Go to the contacts page: url: contains/matches with ... it's clear here.
2. Filling out the form and submitting it (WP form - Contact Form 7)
Questions:
a) How to add code to the form itself?
onsubmit="yaCounterXXXXXX.reachGoal('TARGET_NAME'); return true;"
Answer the question
In order to leave comments, you need to log in
reachGoal('TARGET_NAME') is for the event type "javascript event" in the metric. When creating it, you must specify an identifier in the metric, which must be indicated for the TARGET_NAME place.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question