V
V
Vlad2019-11-18 15:00:20
JavaScript
Vlad, 2019-11-18 15:00:20

How to "catch" sending an event in Google Analytics?

A third party script that I can't edit creates an event on a certain event:

gtag('event', 'Название события', { 'event_category': "Лид", 'event_label': document.location.href });

I need to execute my javascript at the moment when a third party script creates an event for google analytics.
Whether it is possible to intercept somehow on type?
on(gtag_sent (event: 'Название события',) {
... мой скрипт..
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question