W
W
Web19832020-06-15 17:20:43
Google
Web1983, 2020-06-15 17:20:43

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>

with one event , there is another second event
onClick=“ga (‘send’, ‘event’, ‘kontakt’, ‘gotovforma’);”>

Question) how to place it in the form so that two events work?

that's right?
<form action="#" method="get" onsubmit="ym(4053, 'reachGoal', 'targetn'); ga (‘send’, ‘event’, ‘kontakt’, ‘gotovforma’); return true;">

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Denisov, 2020-06-15
@DeoZ

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 question

Ask a Question

731 491 924 answers to any question