@alexyeunghk01 opened this Issue on August 19th 2019

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

@Findus23 commented on August 19th 2019 Member

Hi,

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.

@tsteur commented on August 19th 2019 Member

Sure feel free to do a PR 👍 That should be fine to prefix it with window.

Powered by GitHub Issue Mirror