Problem with Javascript code in template (Piwik)
Hi all,
I am not sure if this has been reported. I saw some similar issues, but they seemed to be slightly different.
I was trying to add Piwik (Web Analytics Code) to the template which has a line like this:
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
That line was being re-written, apparently by framework, to:
document.write(unescape("%3Cscript src='Templates' + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
I'm not entirely sure why, but this fixes the problem, however it concerns me as a bug that, if I am right about the cause, should be addressed.
This workaround fixes the problem.
document.write(unescape("%3Cscript sr"+"c='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));