MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / initTracking

Function initTracking

popup/index.js:1110–1118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1108}
1109
1110function initTracking() {
1111 let trackingEles = document.querySelectorAll("[data-track]");
1112
1113 trackingEles.forEach((ele) => {
1114 ele.onclick = () => {
1115 trackEvent("CLICK_" + ele.getAttribute("data-track"));
1116 };
1117 });
1118}
1119
1120function initScrollToTop() {
1121 scrollToTopBtn.addEventListener("click", () => {

Callers 1

index.jsFile · 0.85

Calls 1

trackEventFunction · 0.90

Tested by

no test coverage detected