S
S
Sergey Konovalenko2019-01-24 16:04:41
JavaScript
Sergey Konovalenko, 2019-01-24 16:04:41

Yandex.Metrica, how to add additional parameters to the goal that will be visible in analytics?

Added a "JavaScript event" target after a successful form submission: But the fact is that this form was made using a plugin for the CMS. And it is used simultaneously on several different pages. Tell me, is there any possibility in the metric to add a custom parameter to the target, which would indicate the address of the page from which the form was submitted? I know that you can get the current URL like this:
ym(52036167, 'reachGoal', 'form-contact');
window.location.href

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Felix_vek, 2019-01-31
@sergeykonovalenko

<script type="text/javascript">
    var goalParams =
    {
       url_page: window.location
    }
</script>

ym(52036167, 'reachGoal', 'form-contact', goalParams);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question