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:
parent
cdba0bfa16
commit
3cc83c531d
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user