Might I recommend this for WordPress? I've used it, it's really simple and both open source and privacy friendly. https://wordpress.org/plugins/koko-analytics/