Quantcast
Channel: Matomo forums - Latest topics
Viewing all articles
Browse latest Browse all 13973

Can we reduce the size of Matomo's javascript file?

$
0
0

@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. :slight_smile:

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

Read full topic


Viewing all articles
Browse latest Browse all 13973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>