assets/nTracker.js
function initOnClick() {
            var clicks = document.querySelectorAll('[data-nctr]');

            for (var i = 0; i < clicks.length; i++) {
                var tag = clicks[i];
                if (tag.addEventListener) {
                    tag.addEventListener("click", clickTrack, false);
                } else {
                    if (tag.attachEvent) {
                        tag.attachEvent("onclick", clickTrack);
                    }
                }

            }
        }
function initOnClick() {
            var clicks = document.querySelectorAll('[data-nctr]');

            for (var i = 0; i < clicks.length; i++) {
                var tag = clicks[i];
                if (tag.addEventListener) {
                    tag.addEventListener("click", clickTrack, false);
                } else {
                    if (tag.attachEvent) {
                        tag.attachEvent("onclick", clickTrack);
                    }
                }

            }
        }
function initOnClick ( ) { var clicks = document . querySelectorAll ( '[data-nctr]' ) ; for ( var i = 0 ; i < clicks . length ; i ++ ) { var tag = clicks [ i ] ; if ( tag . addEventListener ) { tag . addEventListener ( "click" , clickTrack , false ) ; } else { if ( tag . attachEvent ) { tag . attachEvent ( "onclick" , clickTrack ) ; } } } }
Click Track on click to element
Click Track on click to element