Я пытался реализовать событие click от GA, но он ничего не вычисляет
Я прочитал документацию и попытался внести следующие изменения
1-
<a id="home-video" onClick= "dataLayer.push('send', 'event','video', 'clique', 'video2709');" ></a>
2-
<a id="home-video" onClick="ga('send', 'event', {'video', 'clique', 'video2709'});"></a>
3-
<a id="home-video" onClick="ga('send', 'event','video', 'clique', 'video2709');"</a>
4-
<a id="home-video" onClick= "dataLayer.push('send', 'event','video', 'clique', 'video2709');"</a>
var triggerButton = document.getElementById("home-video");
triggerButton.addEventListener("click", function() {
myModal.open();
ga("send", "event", {
eventCategory: "contato",
eventAction: "clique",
eventLabel: "botao-contato-topo"
});
});