mirror of
https://github.com/Maks1mS/free-ozon-dpr.git
synced 2024-12-24 02:52:58 +03:00
fix analytics
This commit is contained in:
parent
cdba0bfa16
commit
3cc83c531d
@ -11,17 +11,18 @@ class Analytics {
|
|||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", function () {
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
const popupPVZId = el("popup-pvz-id");
|
const popupPVZId = el("popup-pvz-id");
|
||||||
const pvzData = { pvz: popupPVZId.innerText };
|
|
||||||
|
|
||||||
const popupLink = el("popup-link");
|
const popupLink = el("popup-link");
|
||||||
const sourceLink = el("popup-source");
|
const sourceLink = el("popup-source");
|
||||||
const infoPopupButton = el("info-popup-button");
|
const infoPopupButton = el("info-popup-button");
|
||||||
|
|
||||||
popupLink.addEventListener("click", function () {
|
popupLink.addEventListener("click", function () {
|
||||||
|
const pvzData = { pvz: popupPVZId.innerText };
|
||||||
Analytics.event("pvz-link-clicked", pvzData);
|
Analytics.event("pvz-link-clicked", pvzData);
|
||||||
});
|
});
|
||||||
|
|
||||||
sourceLink.addEventListener("click", function () {
|
sourceLink.addEventListener("click", function () {
|
||||||
|
const pvzData = { pvz: popupPVZId.innerText };
|
||||||
Analytics.event("pvz-source-clicked", pvzData);
|
Analytics.event("pvz-source-clicked", pvzData);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user