as I am using es6 module and import piwik.js via npm package, every dependency are in js strict mode
It will show error
ReferenceError: JSON_PIWIK is not defined
Can we wrap all global variables with
window.? It seems can fix the issue easily, I am ok to open PR to do it
Quick question: How are you using
piwik.js via npm package? As far as I know there is no npm module for the tracking code.
Sure feel free to do a PR 👍 That should be fine to prefix it with