Use this template to build your own open-source Google Analytics alternative. It's developer friendly, hackable, and embeddable. It is easy to install the full working application and then customize every part of it from data collection to and visualizations.