mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
umami - we do'nt need html class events
This commit is contained in:
parent
5d714c8c17
commit
84c4e9f880
1 changed files with 0 additions and 13 deletions
|
|
@ -30,19 +30,6 @@
|
|||
post(`${root}/api/collect`, {type, payload});
|
||||
};
|
||||
|
||||
// const addEvents = () => {
|
||||
// document.querySelectorAll("[class*='umami--']").forEach(element => {
|
||||
// element.className.split(" ").forEach(className => {
|
||||
// if (/^umami--([a-z]+)--([\w]+[\w-]*)$/.test(className)) {
|
||||
// const [, type, value] = className.split("--");
|
||||
// const listener = () => collect("event", {event_type: type, event_value: value});
|
||||
// element.addEventListener(type, listener, true);
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
// };
|
||||
// addEvents();
|
||||
|
||||
collect("pageview", {url, referrer});
|
||||
window.track = (event_type = "reach", event_value = "") => collect("event", {event_type, event_value, url});
|
||||
})(window);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue