Piwik is an open source analytics platform. Users can choose between self-hosting or paying for professional hosting in the cloud.
To enable Piwik analytics on your Discourse forum, all you have to do is insert your tracking code in the right place.
Go to Admin / Customize / CSS/HTML /