Answer the question
In order to leave comments, you need to log in
How to combine form validation and google analytics goals?
There is a form for sending feedback, which is checked by the script for validity (then on the server, of course, too).
Now they asked me to attach Google Analytics goals to the button
<button class="btn" type="submit" onclick="ga ('send', 'event', 'catYYY', 'actionYYY'); return true;">Отправить</button>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question