Manual onclick events cause JS error


#1

Hello everyone,

I trying to use onClick event tracking option, see below:

Freedom page

this does not fire the event, instead JS error shown in the console.


TypeError: L[Y] is undefined
...=1){X=arguments[W];Y=X.shift();if(n(Y)){L[Y].apply(L,X)}else{Y.apply(L,X)}}}func...

im using the latest version of piwik 2.14.3

futher investigating by look at the source code, i found that is caused by:

LINE:598 asyncTracker[f].apply(asyncTracker, parameterArray);


function apply() {
            var i, f, parameterArray;

            for (i = 0; i < arguments.length; i += 1) {
                parameterArray = arguments[i];
                f = parameterArray.shift();

                if (isString(f)) {
                    asyncTracker[f].apply(asyncTracker, parameterArray);
                } else {
                    f.apply(asyncTracker, parameterArray);
                }
            }
        }