Answer the question
In order to leave comments, you need to log in
How to send an event to google analytics via js?
The point is this. I want to send statistics from submitting a form.
on js wrote sending on the submit event.
$(".lets_work_form").submit(function() {
ga('send', 'event', {
eventCategory: 'form',
eventAction: 'submit'
});
});
Answer the question
In order to leave comments, you need to log in
Show the site, your submit code is more like using the new gtag.
Change from gtag:
Было:
ga('send', 'event', 'form', 'submit');
Стало:
gtag('event', 'submitForm', { 'event_category': 'form', 'event_action': 'submit', });
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question