New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
manual onclick events cause JS error #8814
Comments
Hi @ctrl-alt-deleted - can you try to add the Piwik javascript tracking code in the |
@mattab tried , still get the same issue |
Which version of Piwik are you using? How do you embed Piwik into your site? Are you using the default tracker code as shown by the tracking code generator? |
|
The problem is that |
@ctrl-alt-deleted could you help us? see previous comment |
@mattab i have sent a email , srry for late reply |
Thx for sending us the email. I reproduce it. The seen error there is expected since it is not calling a valid method
It should be eg |
Hello everyone,
I am trying to use onClick event tracking option, see below:
<a href="#" onclick="javascript:_paq.push(['trackEvent', 'Menu', 'Freedom']);">Freedom page</a>
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...
further looking at the source it could be down to
apply()
function being the culpriton
LINE:598: asyncTracker[f].apply(asyncTracker, parameterArray);
The text was updated successfully, but these errors were encountered: