Answer the question
In order to leave comments, you need to log in
How to place two events in one form?
<form action="#" method="get" onsubmit="ym(4053, 'reachGoal', 'targetn'); return true;">
<input type="text" name="firt_name" placeholder="Ваше имя" required>
<input type="tel" name="phone" placeholder="Ваш телефон" required>
<input type="tel" name="email" placeholder="Ваш email" required>
<button type="submit" class="btn1">оставить завку</button>
</form>
onClick=“ga (‘send’, ‘event’, ‘kontakt’, ‘gotovforma’);”>
<form action="#" method="get" onsubmit="ym(4053, 'reachGoal', 'targetn'); ga (‘send’, ‘event’, ‘kontakt’, ‘gotovforma’); return true;">
Answer the question
In order to leave comments, you need to log in
Yes, that's how it's done.
You just need to check whether you really have an event in Google Analytics that should be sent with this outdated code or still through gtag.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question