cubicweb-piwik #10179026 refactor and put javascript code in a separate file instead of in html [open]

I'd suggest to refactor this in order to move the script code in a .js file, which would be add_onloaded here and then call the underlying JS function with the site's parameters.

suggestion by dlaxalde https://www.cubicweb.org/patch/9079370

prioritynormal
typeenhancement
done in<not specified>
load1.000
load left1.000
closed by<not specified>