Migrate to gtag.js
This commit is contained in:
+5
-1
@@ -12,7 +12,11 @@ window.requestAnimationFrame(function () {
|
||||
noticeClose.addEventListener("click", function () {
|
||||
notice.parentNode.removeChild(notice);
|
||||
storage.setNoticeClosed(true);
|
||||
ga("send", "event", "notice", "closed");
|
||||
if (typeof gtag !== undefined){
|
||||
gtag("event", "closed", {
|
||||
event_category: "notice",
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user