Haven't used it in six years but back in the days it was Piwik it was ideal: easy to set up locally, a good range of features and a friendly community (v. responsive to an upgrade issue we experienced but apart from that everything worked exactly as expected).