@Obscerno wrote:
Most pages on my site are static so I need to use Matomo’s Javascript tracker. The thing is, piwik.js is a 21.50kb download (after compression).
I’ve disabled most of piwik’s features, so I feel like this file could be much smaller. Even if it doesn’t block page load, I’d like to respect my users’ bandwidth (and my own!).
Does anyone know if there’s a built-in way to set what features should be included in piwik.js? Any plugins? Has anyone had success in modifying the file manually?
I have found the unminified javascript file is in the “js” folder, so I could try to tweak it myself, but I wanted to make sure I wasn’t reinventing the wheel first.
I’ve noticed that this user also asked something similar back in 2015 but never got any responses: Recompile piwik.js to reduce it’s size
Posts: 5
Participants: 3