{
window.dataLayer.push(arguments)
}
window.dataLayer = window.dataLayer || [], gtag("js", new Date), gtag("config", "AW-969684660"), (window.Image ? new Image : document.createElement("img")).src = "https://vk.com/rtrg?p=VK-RTRG-186759-34MaC",
function (e, r, t, n, o, i, a) {
e.fbq || (o = e.fbq = function () {
o.callMethod ? o.callMethod.apply(o, arguments) : o.queue.push(arguments)
}, e._fbq || (e._fbq = o), o.push = o, o.loaded = !0, o.version = "2.0", o.queue = [], (i = r.createElement(t)).async = !0, i.src = "https://connect.facebook.net/en_US/fbevents.js", (a = r.getElementsByTagName(t)[0]).parentNode.insertBefore(i, a))
}(window, document, "script"), fbq("init", "1261538740644522"), fbq("track", "PageView"), window.onload = function () {
location.search.indexOf("show_modal=true") > 0 && $callbackTrigger.click()
}, $(document).ready(function () {
var triggerGA = function (e, r) {
return "function" != typeof ga || ga("send", "event", "Reg", e, "Trial", r)
};
Как сделать, так, чтобы вместо
ga("send", "event", "Reg", e, "Trial", r)
срабатывало
dataLayer.push({'event': 'event-to-ga', 'eventCategory' : 'Reg', 'eventAction' : e, 'eventLabel' : 'Trial', 'eventValue' : r })
https://yaroshenko.by/javascript-events-google-analytics-tag-manager/
Обсуждают сегодня