0
0
mirror of https://github.com/Maks1mS/free-ozon-dpr.git synced 2024-12-23 10:32:58 +03:00

fix analytics

This commit is contained in:
Maxim Slipenko 2024-06-26 18:46:34 +03:00
parent cdba0bfa16
commit 3cc83c531d

View File

@ -11,17 +11,18 @@ class Analytics {
document.addEventListener("DOMContentLoaded", function () {
const popupPVZId = el("popup-pvz-id");
const pvzData = { pvz: popupPVZId.innerText };
const popupLink = el("popup-link");
const sourceLink = el("popup-source");
const infoPopupButton = el("info-popup-button");
popupLink.addEventListener("click", function () {
const pvzData = { pvz: popupPVZId.innerText };
Analytics.event("pvz-link-clicked", pvzData);
});
sourceLink.addEventListener("click", function () {
const pvzData = { pvz: popupPVZId.innerText };
Analytics.event("pvz-source-clicked", pvzData);
});