Answer the question
In order to leave comments, you need to log in
How to add a goal in Google Analytics to an order form?
Good afternoon!
I ran into an unexpected problem with creating a goal in Google Analytics. Compared to the actions in the metric, here I had a frank stupor.
There is a site, there is a single form for ordering a service (2 text fields and a button), which is copied on many pages. You need to create a goal in the analytics for the event of clicking the "Unsubscribe" button.
In the analytics interface, I created an "Own" goal, named it "usl_btn_click", set the type to "Event", but at the next step, where the category, label, action is indicated, I don't understand what to specify at all. Plus what you need to add directly to the form button code to track the event.
The button itself is:
<div class="submit zakaz_button" onclick="$('textarea[name=zakaz_name]').val($('textarea[name=zakaz_name]').val()+' телефон:'+$('input[name=zakaz_phone]').val()+'');$('form#f3').submit(); yaCounterXXX.reachGoal('zakaz_uslugi'); return true;">Отправить заявку</div>
Answer the question
In order to leave comments, you need to log in
By analogy with the Yandex.Metrica event, you need to set up tracking for the Google Analytics event . The following code is used for this:
Paste it into the onclick tag next to yaCounterXXX.reachGoal.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question